System.Linq.Expressions.LambdaExpression Class

Describes a lambda expression. This captures a block of code that is similar to a .NET method body.

See Also: LambdaExpression Members


public abstract class LambdaExpression : Expression


The System.Linq.Expressions.LambdaExpression type represents a lambda expression in the form of an expression tree. The System.Linq.Expressions.Expression`1 type, which derives from System.Linq.Expressions.LambdaExpression and captures the type of the lambda expression more explicitly, can also be used to represent a lambda expression. At runtime, an expression tree node that represents a lambda expression is always of type System.Linq.Expressions.Expression`1.

The value of the Expression.NodeType property of a System.Linq.Expressions.LambdaExpression is ExpressionType.Lambda.

Use the Expression.Lambda(Expression, ParameterExpression[]) factory methods to create a System.Linq.Expressions.LambdaExpression object.


Namespace: System.Linq.Expressions
Assembly: System.Core (in System.Core.dll)
Assembly Versions:,