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
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про