LambdaExpression.Compile LambdaExpression.Compile LambdaExpression.Compile LambdaExpression.Compile Method

定义

生成表示 lambda 表达式的委托。Produces a delegate that represents the lambda expression.

重载

Compile() Compile() Compile() Compile()

生成表示 lambda 表达式的委托。Produces a delegate that represents the lambda expression.

Compile(Boolean) Compile(Boolean) Compile(Boolean) Compile(Boolean)

生成表示 Lambda 表达式的已解释或已编译委托。Produces an interpreted or compiled delegate that represents the lambda expression.

Compile(DebugInfoGenerator) Compile(DebugInfoGenerator) Compile(DebugInfoGenerator)

生成表示 lambda 表达式的委托。Produces a delegate that represents the lambda expression.

Compile() Compile() Compile() Compile()

生成表示 lambda 表达式的委托。Produces a delegate that represents the lambda expression.

public:
 Delegate ^ Compile();
public Delegate Compile ();
member this.Compile : unit -> Delegate
Public Function Compile () As Delegate

返回

一个 Delegate,它包含 lambda 表达式的已编译版本。A Delegate that contains the compiled version of the lambda expression.

注解

Compile方法可用于转换LambdaExpression委托,它表示为表达式树。The Compile method can be used to convert a LambdaExpression expression tree into the delegate that it represents.

Compile(Boolean) Compile(Boolean) Compile(Boolean) Compile(Boolean)

生成表示 Lambda 表达式的已解释或已编译委托。Produces an interpreted or compiled delegate that represents the lambda expression.

public:
 Delegate ^ Compile(bool preferInterpretation);
public Delegate Compile (bool preferInterpretation);
member this.Compile : bool -> Delegate
Public Function Compile (preferInterpretation As Boolean) As Delegate

参数

preferInterpretation
Boolean Boolean Boolean Boolean

如果可用,则为 true,指示表达式应编译为已解释的形式;否则为 falsetrue to indicate that the expression should be compiled to an interpreted form, if it's available; otherwise, false.

返回

一个委托,表示 LambdaExpression 对象所描述的已编译 Lambda 表达式。A delegate that represents the compiled lambda expression described by the LambdaExpression object.

Compile(DebugInfoGenerator) Compile(DebugInfoGenerator) Compile(DebugInfoGenerator)

生成表示 lambda 表达式的委托。Produces a delegate that represents the lambda expression.

public:
 Delegate ^ Compile(System::Runtime::CompilerServices::DebugInfoGenerator ^ debugInfoGenerator);
public Delegate Compile (System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator);
member this.Compile : System.Runtime.CompilerServices.DebugInfoGenerator -> Delegate

参数

debugInfoGenerator
DebugInfoGenerator DebugInfoGenerator DebugInfoGenerator DebugInfoGenerator

编译器用于标记序列点并批注局部变量的调试信息生成器。Debugging information generator used by the compiler to mark sequence points and annotate local variables.

返回

包含 lambda 的已编译版本的委托。A delegate containing the compiled version of the lambda.

适用于