LambdaExpression.Compile Method ()

 

Produces a delegate that represents the lambda expression.

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

public Delegate Compile()

Return Value

Type: System.Delegate

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

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Windows Phone
Available since 8.1
Return to top
Show: