Coffeehouse Post

Single Post Permalink

View Thread: Lambda Expressions:Why?
  • User profile image

    Escamillo wrote:
    Anonymous methods are great in C# 2.0.    Is type inference the main thing that lambda provides over anonymous methods, or is there something more (not that type inference is a trivial thing)?

    Yes, lamda expressions can be converted to and from expression trees.  This is the important thing, beyond anonymous delegates, etc....  It is the central feature because with lazy evaluation you can send off expression trees that can be optimized, changed, parallelized (Google PLINQ), etc....