LambdaExpression.Compile メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ラムダ式を表すデリゲートを生成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Compile() |
ラムダ式を表すデリゲートを生成します。 |
| Compile(Boolean) |
ラムダ式を表す解釈されたデリゲートまたはコンパイルされたデリゲートを生成します。 |
| Compile(DebugInfoGenerator) |
ラムダ式を表すデリゲートを生成します。 |
Compile()
ラムダ式を表すデリゲートを生成します。
public:
Delegate ^ Compile();
public Delegate Compile();
member this.Compile : unit -> Delegate
Public Function Compile () As Delegate
返品
ラムダ式のコンパイル済みバージョンを含む Delegate 。
注釈
Compile メソッドを使用して、LambdaExpression式ツリーを、それを表すデリゲートに変換できます。
適用対象
Compile(Boolean)
ラムダ式を表す解釈されたデリゲートまたはコンパイルされたデリゲートを生成します。
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)
ラムダ式を表すデリゲートを生成します。
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
シーケンス ポイントをマークし、ローカル変数に注釈を付けるためにコンパイラによって使用されるデバッグ情報ジェネレーター。
返品
ラムダのコンパイル済みバージョンを含むデリゲート。