I have had very positive feedback about my book, and my coverage of lambda expressions has specifically been mentioned on occasion. I have also noticed that some developers are a bit uncomfortable with lambda expressions, so I thought that by sharing the lambda expression portion of my book, perhaps it would help alleviate concern for some developers. Hopefully this portion will help them embrace what lambda expressions can do for them.
The portion that I am sharing here is only part of what I cover in my book. In the book, I show the journey from using named methods to anonymous methods and then finally to lambda expressions. I begin with the premise that a common code developer has created a common method named FilterArrayOfInts and that it is another developer's task to utilize that common method to filter an array so that only odd integers remain. I then show a series of solutions; one using a named method, another showing an anonymous method, and the one in this shared book text using a lambda expression. This is the reason there is a recap section at the end of the material.


I hope this section has eliminated any dislike you may have for lambda expressions. Although they may be different than what you are accustomed to, they are a very nice addition to the language.