Редагувати

Поділитися через


InstructionEncoder(BlobBuilder, ControlFlowBuilder) Constructor

Definition

Creates an encoder backed by code and control-flow builders.

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)

Parameters

codeBuilder
BlobBuilder

Builder to write encoded instructions to.

controlFlowBuilder
ControlFlowBuilder

Builder tracking labels, branches and exception handlers. Must be specified to be able to use some of the control-flow factory methods of InstructionEncoder, such as Branch(ILOpCode, LabelHandle), DefineLabel(), MarkLabel(LabelHandle) etc.

Applies to