Declaration of Anonymous types List

Is there any way to declare a list object of anonymous type. I mean List<var> someVariable = new List<var>(); someVariable.Add( new{Name="Krishna", Phones = new[] {"555-555-5555", "666-666-6666"}} ); This is because I need to create a collection at runtime. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may … Read more