Table of Contents

Method MarkLabel

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

MarkLabel(ILLabel?)

Set the target of a label to the current position (label.Target = Next) and moves after it.
public void MarkLabel(ILLabel? label)

Parameters

label ILLabel
The label to mark

MarkLabel(Instruction)

Create a new label targetting a specific instruction.
public ILLabel MarkLabel(Instruction inst)

Parameters

inst Instruction
The instruction to target

Returns

ILLabel
The created label

MarkLabel()

Create a new label targetting the current position (label.Target = Next) and moves after it.
public ILLabel MarkLabel()

Returns

ILLabel
The newly created label