SgDotNet
Singapore Professional .NET User Group -For Cool Developers

C# 3.0 Notable: Expression Trees and Lambda Expression

This is rather good an article detailed "evolving" of lambda expression (why and how it arrives in C#) and the expression tree, the foundation from LINQ to DLINQ or XLINQ or something-else-LINQ.

Beautiful LISP!!! *) I agree with the author that the achievement of C# 3.0 is the expanding support for functional programming idioms. Lambdas is the enabler. Expessions-as-data-structure is just a proof.

You may relate lambdas as lightweight (or read: expressive) syntax for anonymous methods whose bodies are expressions. C# language specification simply defines lambdas by translation to anonymous methods, of course, assisted by the compiler.

http://www.interact-sw.co.uk/iangblog/2005/09/30/expressiontrees


Posted Jul 31 2006, 12:42 AM by blackinkbottle
Filed under:
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems