CS301_04_01 – Anonymous Types

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.

« Previous LessonC# 301 – C# 3.0 Language EnhancementsNext Lesson »

This ship has sailed …

This webpage describes one video of hundreds hosted on this website. HOWEVER …

This video has been removed from our collection.

Read why I decided to keep old pages like this around. Or better yet, visit the home page … its the best place to get started.

About this video:

Duration: 16 Minutes, 0 Seconds
Recorded Using: Visual Studio 2008 (all versions)


10 Year Anniversary Sale - 30% Off - ENDING SOON!!!    Learn more ...