Timothy Khouri - SingingEels.com

I subscribe to the "take it apart and rebuild it" approach to learning.

LINQ, Lamda and Extension Methods Work Together!

Thanks to the new language features such as LINQ, Extension Methods and Lambda in .NET 3.5, working with arrays is as easy as one line. Just by including a reference to the System.Linq namespace in your .Net 3.5 project you automatically get so much functionality it's not even funny.

Let's take for example this very simple task and see how including these above language featuers cut the work by 80%! Assuming we have some sort of list (or in this case a simple array is fine) of "Sales" items, and we want to build a function that will return the number of sales in a particular zip code.

Examples Here: LINQ, Lamda and Extension Methods Work Together!


No Comments