LambdaExpression.CompileToMethod 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 lambda 编译为方法定义。
重载
| CompileToMethod(MethodBuilder) | 将 lambda 编译为方法定义。 | 
| CompileToMethod(MethodBuilder, DebugInfoGenerator) | 将 lambda 编译为方法定义和自定义调试信息。 | 
CompileToMethod(MethodBuilder)
将 lambda 编译为方法定义。
public:
 void CompileToMethod(System::Reflection::Emit::MethodBuilder ^ method);public void CompileToMethod (System.Reflection.Emit.MethodBuilder method);member this.CompileToMethod : System.Reflection.Emit.MethodBuilder -> unitPublic Sub CompileToMethod (method As MethodBuilder)参数
- method
- MethodBuilder
用于保存 lambda 的 IL 的 MethodBuilder。
适用于
CompileToMethod(MethodBuilder, DebugInfoGenerator)
将 lambda 编译为方法定义和自定义调试信息。
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 -> unitPublic Sub CompileToMethod (method As MethodBuilder, debugInfoGenerator As DebugInfoGenerator)参数
- method
- MethodBuilder
用于保存 lambda 的 IL 的 MethodBuilder。
- debugInfoGenerator
- DebugInfoGenerator
调试编译器用于标记序列点和批注局部变量的信息生成器。