LambdaExpression.CompileToMethod Method
Definition
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om