InstructionEncoder.Branch(ILOpCode, LabelHandle) Method

Definition

Encodes a branch instruction.

public:
 void Branch(System::Reflection::Metadata::ILOpCode code, System::Reflection::Metadata::Ecma335::LabelHandle label);
public void Branch (System.Reflection.Metadata.ILOpCode code, System.Reflection.Metadata.Ecma335.LabelHandle label);
member this.Branch : System.Reflection.Metadata.ILOpCode * System.Reflection.Metadata.Ecma335.LabelHandle -> unit
Public Sub Branch (code As ILOpCode, label As LabelHandle)

Parameters

code
ILOpCode

Branch instruction to encode.

label
LabelHandle

Label of the target location in instruction stream.

Exceptions

code is not a branch instruction.

-or-

label was not defined by this encoder.

label has default value.

Applies to