Edit

Share via


LambdaExpression.CompileToMethod Method

Definition

Compiles the lambda into a method definition.

Overloads

CompileToMethod(MethodBuilder)

Compiles the lambda into a method definition.

CompileToMethod(MethodBuilder, DebugInfoGenerator)

Compiles the lambda into a method definition and custom debug information.

CompileToMethod(MethodBuilder)

Compiles the lambda into a method definition.

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)

Parameters

method
MethodBuilder

A MethodBuilder which will be used to hold the lambda's IL.

Applies to

CompileToMethod(MethodBuilder, DebugInfoGenerator)

Compiles the lambda into a method definition and custom debug information.

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)

Parameters

method
MethodBuilder

A MethodBuilder which will be used to hold the lambda's IL.

debugInfoGenerator
DebugInfoGenerator

Debugging information generator used by the compiler to mark sequence points and annotate local variables.

Applies to