LambdaExpression.CompileToMethod Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compiles the lambda into a method definition.
CompileToMethod(MethodBuilder) |
Compiles the lambda into a method definition. |
CompileToMethod(MethodBuilder, DebugInfoGenerator) |
Compiles the lambda into a method definition and custom debug information. |
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
.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 |
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
.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 |
.NET повратне информације
.NET је пројекат отвореног кода. Изаберите везу да бисте обезбедили повратне информације: