共用方式為


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

將用來保存 Lambda IL 的 MethodBuilder

適用於

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

將用來保存 Lambda IL 的 MethodBuilder

debugInfoGenerator
DebugInfoGenerator

編譯程式用來標記時序點和標註局部變數的偵錯資訊產生器。

適用於