LambdaExpression.CompileToMethod 方法

定義

將 Lambda 編譯為方法定義。

多載

CompileToMethod(MethodBuilder)

將 Lambda 編譯為方法定義。

CompileToMethod(MethodBuilder, DebugInfoGenerator)

將 Lambda 編譯為方法定義和自訂偵錯資訊。

CompileToMethod(MethodBuilder)

將 Lambda 編譯為方法定義。

public:
 void CompileToMethod(System::Reflection::Emit::MethodBuilder ^ method);
public void CompileToMethod (System.Reflection.Emit.MethodBuilder method);
member this.CompileToMethod : System.Reflection.Emit.MethodBuilder -> unit
Public Sub CompileToMethod (method As MethodBuilder)

參數

method
MethodBuilder

MethodBuilder,將用來保存 Lambda 的 IL。

適用於

CompileToMethod(MethodBuilder, DebugInfoGenerator)

將 Lambda 編譯為方法定義和自訂偵錯資訊。

public:
 void CompileToMethod(System::Reflection::Emit::MethodBuilder ^ method, System::Runtime::CompilerServices::DebugInfoGenerator ^ debugInfoGenerator);
public void CompileToMethod (System.Reflection.Emit.MethodBuilder method, System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator);
member this.CompileToMethod : System.Reflection.Emit.MethodBuilder * System.Runtime.CompilerServices.DebugInfoGenerator -> unit
Public Sub CompileToMethod (method As MethodBuilder, debugInfoGenerator As DebugInfoGenerator)

參數

method
MethodBuilder

MethodBuilder,將用來保存 Lambda 的 IL。

debugInfoGenerator
DebugInfoGenerator

編譯器使用的偵錯資訊產生工具,用以標記序列點以及標註區域變數。

適用於