Search notes:

C# - anonymous types

Anonymous types are classes that directly derive from System.Object and consist of read-only properties only. They don't methods, events or anything else.
Because the names for anonymous types are provided by the compiler, instances of anonymous types are typically declared with the var keyword.
Anonymous types are constructed with the object initializer syntax, yet without a type-name (hence the name anonymous types).
Anonymous types are especially useful in LINQ queries.

See also

select keyword
Anonymous functions

Index