共用方式為


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 的一些控制流程 Factory 方法,例如 Branch(ILOpCode, LabelHandle)DefineLabel()MarkLabel(LabelHandle) 等。

適用於