C#/.NET Little Wonders: The Joy of Anonymous Types

added by BlackRabbitCoder
6/21/2012 8:09:17 PM

0 Kicks, 68 Views

In the .NET 3 Framework, Microsoft introduced the concept of anonymous types, which provide a way to create a quick, compiler-generated types at the point of instantiation. These may seem trivial, but are very handy for concisely creating lightweight, strongly-typed objects containing only read-only properties that can be used within a given scope.


6/21/2012 8:09:42 PM
New post!