InstructionEncoder(BlobBuilder, ControlFlowBuilder) 构造函数

定义

创建由代码和控制流生成器支持的编码器。

public InstructionEncoder (System.Reflection.Metadata.BlobBuilder codeBuilder, System.Reflection.Metadata.Ecma335.ControlFlowBuilder? controlFlowBuilder = default);
public InstructionEncoder (System.Reflection.Metadata.BlobBuilder codeBuilder, System.Reflection.Metadata.Ecma335.ControlFlowBuilder controlFlowBuilder = default);
new System.Reflection.Metadata.Ecma335.InstructionEncoder : System.Reflection.Metadata.BlobBuilder * System.Reflection.Metadata.Ecma335.ControlFlowBuilder -> System.Reflection.Metadata.Ecma335.InstructionEncoder
Public Sub New (codeBuilder As BlobBuilder, Optional controlFlowBuilder As ControlFlowBuilder = Nothing)

参数

codeBuilder
BlobBuilder

要将已编码的指令写入到的生成器。

controlFlowBuilder
ControlFlowBuilder

生成器跟踪标签、分支和异常处理程序。 必须指定才能使用 InstructionEncoder 的一些控制流工厂方法,例如 Branch(ILOpCode, LabelHandle)DefineLabel()MarkLabel(LabelHandle)

适用于