What are anonymous types?



What are anonymous types?..

Answer / Vikram Singh Vimal

Anonymous types are C# classes that are automatically generated by the compiler. They don't have a name and their members (properties) are inferred from an initialization expression. Here's an example: `var person = new { Name = "John", Age = 30 };`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What is difference between IEnumerable and IQueryable?

1 Answers  


How LINQ is beneficial than Stored Procedures?

1 Answers  


What is Language Integrated Query (LINQ)?

1 Answers  


What are the benefits of tier architecture style?

1 Answers  


What is Expression?

1 Answers  


How to assign a computed value to the same array back?

1 Answers   B-Ways TecnoSoft,


What is the difference between linq to sql and entity framework?

1 Answers  


How to do left join in linq with entity framework?

1 Answers  


What are different types of operators in LINQ?

1 Answers  


What is linq to sql deferred loading?

1 Answers  


How to use Having in LINQ?

1 Answers  


What are linq extension methods?

1 Answers  


Categories