Прочитај на енглеском Уреди

Делите путем


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.

C#
public void CompileToMethod(System.Reflection.Emit.MethodBuilder method);

Parameters

method
MethodBuilder

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

Applies to

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

CompileToMethod(MethodBuilder, DebugInfoGenerator)

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

C#
public void CompileToMethod(System.Reflection.Emit.MethodBuilder method, System.Runtime.CompilerServices.DebugInfoGenerator 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

.NET Framework 4.8.1 и друге верзије
Производ Верзије
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1