The road to Linq: C# 3.0 for mere mortals, part 0

It’s not the easiest of documents to read: the C# 3.0 specification. On my recent endeavours with Linq and DLinq in particular, I read through it. Most of what is new in C# 3.0 is there to make the Language Integrated Queries possible. The spec is very technical, so I thought I would break it down into smaller pieces and explain C# 3.0 in a more understandable way.


The next couple of post entries will cover each of the new language enhancements in C# 3.0. These are, in no particular order:



  1. Extensions methods
  2. Implicitly typed local variables and arrays
  3. Anonymous types
  4. Object and collection initializers
  5. Lambda expressions
  6. Expression trees
  7. Query expressions

I will assume that you are familiar with the C# 2.0 enhancements, i.e. generics, anonymous methods, iterators and partial types. We’ll be making use of the first two for quite a bit.


Once you and me are through this primer on C# 3.0, we’re ready to take on Linq, DLinq and XLinq. Cool stuff is to follow.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s