LambdaExpression.Compile Método

Definição

Produz um delegado que representa a expressão lambda.Produces a delegate that represents the lambda expression.

Sobrecargas

Compile()

Produz um delegado que representa a expressão lambda.Produces a delegate that represents the lambda expression.

Compile(Boolean)

Produz um delegado interpretado ou compilado que representa a expressão lambda.Produces an interpreted or compiled delegate that represents the lambda expression.

Compile(DebugInfoGenerator)

Produz um delegado que representa a expressão lambda.Produces a delegate that represents the lambda expression.

Compile()

Produz um delegado que representa a expressão 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

Retornos

Delegate

Um Delegate que contém a versão compilada da expressão lambda.A Delegate that contains the compiled version of the lambda expression.

Comentários

O Compile método pode ser usado para converter uma LambdaExpression árvore de expressão no delegado que ela representa.The Compile method can be used to convert a LambdaExpression expression tree into the delegate that it represents.

Aplica-se a

Compile(Boolean)

Produz um delegado interpretado ou compilado que representa a expressão 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

Parâmetros

preferInterpretation
Boolean

true para indicar que a expressão deverá ser compilada em um formato interpretado, se ele estiver disponível; false caso contrário.true to indicate that the expression should be compiled to an interpreted form, if it's available; otherwise, false.

Retornos

Delegate

Um delegado que representa a expressão lambda compilada descrita pelo objeto LambdaExpression.A delegate that represents the compiled lambda expression described by the LambdaExpression object.

Aplica-se a

Compile(DebugInfoGenerator)

Produz um delegado que representa a expressão 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
Public Function Compile (debugInfoGenerator As DebugInfoGenerator) As Delegate

Parâmetros

debugInfoGenerator
DebugInfoGenerator

O gerador de informações de depuração usado pelo compilador para marcar pontos de sequência e anotar as variáveis locais.Debugging information generator used by the compiler to mark sequence points and annotate local variables.

Retornos

Delegate

Um delegado que contém a versão compilada da expressão lambda.A delegate containing the compiled version of the lambda.

Aplica-se a