Anonymous types are a convenient language feature that
enable developers to concisely define inline CLR types within code,
without having to explicitly provide a formal class declaration of
the type. Although they can be used in lots of scenarios, there
are particularly useful when querying and transforming/shaping data with
LINQ.
This post concludes my 5-part language series for
"Orcas". Going forward I'll be doing many more LINQ posts that
will demonstrate how to actually take advantage of all of these new language
features to perform common data access operations (defining data models,
querying, updating, using sprocs, validation, etc). I wanted to get this
5 part language series done first, though, so that you'll have a good way to
really understand the underlying language constructs as we drill into scenarios
within my upcoming posts.
Hope this has helped,
Scott