Question: Which code snippet declares an anonymous type named userData?
- `var<T> userData = new <T> { name = "John", age = 32 };`
- `var userData = new { name = "John", age = 32 };`
- `AType userData = new AType { name = "John", age = 32 };`
- `Anonymous
userData = new Anonymous { name = "John", age = 32 };`
Answer: The correct answer of the above question is Option B:`var userData = new { name = "John", age = 32 };`