LambdaExpression.CompileToMethod Metod

Definition

Kompilerar lambda till en metoddefinition.

Överlagringar

Name Description
CompileToMethod(MethodBuilder)

Kompilerar lambda till en metoddefinition.

CompileToMethod(MethodBuilder, DebugInfoGenerator)

Kompilerar lambda till en metoddefinition och anpassad felsökningsinformation.

CompileToMethod(MethodBuilder)

Kompilerar lambda till en metoddefinition.

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)

Parametrar

method
MethodBuilder

En MethodBuilder som kommer att användas för att hålla lambda's IL.

Gäller för

CompileToMethod(MethodBuilder, DebugInfoGenerator)

Kompilerar lambda till en metoddefinition och anpassad felsökningsinformation.

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)

Parametrar

method
MethodBuilder

En MethodBuilder som kommer att användas för att hålla lambda's IL.

debugInfoGenerator
DebugInfoGenerator

Felsöka informationsgeneratorn som används av kompilatorn för att markera sekvenspunkter och kommentera lokala variabler.

Gäller för