Top "Anonymous-types" questions

Anonymous types are data types which dynamically add a set of properties into a single object without having to first explicitly define a type

MVC dynamic routeValues for ActionLinks

I have a need to use ActionLink to link to ann edit screen for my ViewModel A. A has a …

c# asp.net-mvc-3 anonymous-types routevalues
Using ServiceStack.Text to deserialize a json string to object

I have a JSON string that looks like: "{\"Id\":\"fb1d17c7298c448cb7b91ab7041e9ff6\",\"Name\":\"John\",\"…

c# servicestack anonymous-types json-deserialization servicestack-text
Resolving a parameter name at runtime

Possible Duplicate: Finding the Variable Name passed to a Function in C# In C#, is there a way (terser the …

c# reflection anonymous-types
Is it possible to declare an anonymous type in C# with a variable/dynamic set of fields?

In C#, I would like to figure out if it's possible to declare an anonymous type where the fields are …

c# dynamic anonymous-types dapper
Anonymous collection initializer for a dictionary

Is it possible to implicitly declare next Dictionary<HyperLink, Anonymous>: { urlA, new { Text = "TextA", Url = "UrlA" } }, { urlB, new { …

c# .net dictionary anonymous-types collection-initializer
Count objects within dynamic anonymous object (C#)

I have a dynamic object (it's actually json) that I pass into my MVC WebApi controller. The json object contains …

c# asp.net-mvc linq anonymous-types dynamicobject
Passing anonymous objects from a view to a partial view

I understand from various other related questions here and here among others, that you can't pass anonymously typed objects from …

asp.net-mvc razor partial-views anonymous-types
Add item to an anonymous list

I have a list of anonymous type var myList = db.Products.Select(a => new {a.ProductName, a.ProductId, a.…

c# anonymous-types
Why does C++11 not support anonymous structs, while C11 does?

C11 supports anonymous structures, like so: struct Foo { struct { size_t x, y; }; }; struct Foo f; f.x = 17; f.y = 42; …

c++ c c++11 anonymous-types c11
IEqualityComparer for anonymous type

I have this var n = ItemList.Select(s => new { s.Vchr, s.Id, s.Ctr, s.Vendor, s.Description, …

linq lambda anonymous-types iequalitycomparer