LambdaExpression.Compile メソッド

定義

ラムダ式を表すデリゲートを作成します。

オーバーロード

Compile()

ラムダ式を表すデリゲートを作成します。

Compile(Boolean)

ラムダ式を表す、解釈されたまたはコンパイル済みのデリゲートを作成します。

Compile(DebugInfoGenerator)

ラムダ式を表すデリゲートを作成します。

Compile()

Source:
LambdaExpression.cs
Source:
LambdaExpression.cs
Source:
LambdaExpression.cs

ラムダ式を表すデリゲートを作成します。

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

戻り値

コンパイルされたバージョンのラムダ式を格納する Delegate

注釈

メソッドを Compile 使用して、式ツリーを LambdaExpression 表すデリゲートに変換できます。

適用対象

Compile(Boolean)

Source:
LambdaExpression.cs
Source:
LambdaExpression.cs
Source:
LambdaExpression.cs

ラムダ式を表す、解釈されたまたはコンパイル済みのデリゲートを作成します。

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

その式を解釈された形式にコンパイルすべきことを示す true (存在する場合)、それ以外の場合 false

戻り値

LambdaExpression オブジェクトにより記述されたコンパイル済みのラムダ式を表すデリゲート。

適用対象

Compile(DebugInfoGenerator)

Source:
LambdaExpression.cs
Source:
LambdaExpression.cs
Source:
LambdaExpression.cs

ラムダ式を表すデリゲートを作成します。

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

パラメーター

debugInfoGenerator
DebugInfoGenerator

シーケンス ポイントをマークしたりローカル変数に注釈を付けたりするためにコンパイラが使用するデバッグ情報ジェネレーター。

戻り値

コンパイルされたバージョンのラムダを含んでいるデリゲート。

適用対象