In this video we'll look at another language enhancement in C# 3.0 and that is Anonymous Types.  You might be familiar with anonymous methods in C# 2.0 which allowed you to create a function without a name ... to basically define the body of the function inline to another method call.  Anonymous types are similiar ... you can think of them as "on the fly classes" ... or "un-named classes" ... and the key to this is that the compiler "infers" or figures out what the type definition looks like based on the object initializer.

Downloads:

Sign up today to access downloads.
CS301_04_01 - Anonymous Types
Duration: 16 Minutes, 0 Seconds
Size: 19.19M
Recorded Using: Visual Studio 2008 (all versions)

Get Free Videos via Email

Sign up for our newsletter and receive links to free videos and more.

Subscribe

We don't rent/sell/or commit other evil deeds with your email address. See our Privacy Policy.