Summary
In this chapter I introduced you to the syntax of lambda expressions, which are, for the most part,
replacements for anonymous methods. In fact, it’s a shame lambda expressions did not come along
with C# 2.0, because then there would have been no need for anonymous methods. I showed how
you can convert lambda expressions, with and without statement bodies, into delegates. Addition-
ally, you saw how lambda expressions without statement bodies are convertible to expression trees
based on the Expression<T> type as defined in the System.Linq.Expression namespace. Using
expression trees, you can apply transformations to the expression tree before actually compiling it
into a delegate and calling it. I finished the chapter by showing you useful ...