C# 3.0 Lambda Expressions replacing Anonymous Methods
C# 3.0 Lambda Expressions play an integral part of making the LINQ framework work. However, even apart from LINQ, they stand alone quite nicely as a great replacement to C# 2.0 anonymous methods in terms of language syntax usability. For example, consider this simple anonymous method: personList.RemoveAll(delegate(Person person) { return person.DateOfBirth.Year < 1980; }); While anonymous methods were a great language addition in C# 2.0, the syntax could be confusing at times i...