How about dynamic?
List<dynamic> dynamicList = new List<dynamic>();
dynamicList.Add(new { Name = "Krishna", Phones = new[] { "555-555-5555", "666-666-6666" } });
More Related Contents:
- How to dynamic new Anonymous Class?
- Cast an Anonymous Types in Object and retrieve one Field
- Get the correct week number of a given date
- Call a stored procedure with parameter in c#
- Is there a good LINQ way to do a cartesian product?
- How to access session variables from any class in ASP.NET?
- Cannot open database “test” requested by the login. The login failed. Login failed for user ‘xyz\ASPNET’
- Convert webpage to image from ASP.NET
- Dynamically change connection string in Asp.Net Core
- ITextSharp insert text to an existing pdf
- How to merge multiple pdf files (generated in run time)?
- Convert JSON String to JSON Object c#
- Avoiding SQL injection without parameters
- Display custom error page when file upload exceeds allowed size in ASP.NET MVC
- Basic Simple Asp.net + jQuery + JSON example
- ASP.NET GridView: How to edit and delete data records
- Working with C# Anonymous Types
- ASP.NET Session size limitation
- Update multiple records at once in asp.net mvc
- Different LIKE behaviour between my application and the Access query wizard
- Calling async methods from non-async code
- I’ve been hacked. Evil aspx file uploaded called AspxSpy. They’re still trying. Help me trap them‼
- How to update querystring in C#?
- Read a Registry Key
- Find a control on a page with a master page
- Text on an Image button in c# asp.net 3.5
- Specify Date format in MVC5 (dd/MM/yyyy)
- Can’t find how to use HttpContent
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method in MVC 4
- Amazon SES Email address is not verified