Introduction to C# Anonymous Methods
During these holidays I've got a few days off, which I'm spending (partially :-) on playing with the new Visual Studio.NET 2005 CTP (December edition). The Server Side has a great article by Patrick Smacchia about one of the new language features in .NET 2.0: anonymous methods.
Introduction
Generics are often introduced as the mainstream language feature of Whidbey (.NET2). However, while surfing off the beaten path I realized that new features named anonymous methods and iterators are also very interesting. Unlike generics, these two features don't imply new IL instructions set changes compared to .NET1 IL instructions set or any CTS changes. All the magic is in the compilers. This article is the first of a series of two articles dedicated to these new features. While these articles unfold, you will understand the reasons for beginning with anonymous methods. Both articles share the same structure: first a basic introduction to the functionality, followed by a strong analysis of the compiler work before drilling into advanced uses.