Video Tutorial Library:

Visual Basic 301 - Visual Basic 9.0 Language Enhancements :

VB301_04_01 - Anonymous Types

Tags: VB , Language , Experienced , 2008
In this video we'll look at another language enhancement in VB 9 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 as you see here, 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.  You might wonder why in the world you would need such a thing, but they are used extensively when working with
LINQ, so we want to get our heads around them before we start looking at linq examples.

Downloads:

Sign up today to access downloads.
VB301_04_01 - Anonymous Types
Duration: 10 Minutes, 12 Seconds
Size: 12.81M
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.