System.Linq.Expressions.LambdaExpression.Compile Method

Produces a delegate that represents the lambda expression.

Syntax

public Delegate Compile ()

Returns

A Delegate that contains the compiled version of the lambda expression.

Remarks

The LambdaExpression.Compile method can be used to convert a System.Linq.Expressions.LambdaExpression expression tree into the delegate that it represents.

Requirements

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