|
Lambda Expressions are based on function programming; they have been added to
.NET. A Lambda Expression is essentially a very compressed function often
used where a delegate would be used, and they have a precise
syntax, which
is roughly:
Function(arg1, arg2...argn) expression
You can explicitly type the parameters that is, provide the
argument types or
leave them unspecified and the compiler will figure it out. The expression part
is a statement such as a + b, or s.Length. The Return keyword is implicit.
See also
"Exploring Lambda Expression Trees" on
Developer.com.
|
|
 Developer.com Contains resources, tools, articles, discussion areas, and events of interest to Internet/intranet developers. Directories include: ActiveX, Java, JavaBeans, JavaScript, Microsoft and .NET, open source and VRML.
Exploring Lambda Expression Trees Lambda Expressions are based on function programming; they have been added to .NET. A Lambda Expression is essentially a very compressed function often used where a delegate would be used, and they have a precise syntax.
|