Table of Contents

Method EmitSwitch

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

EmitSwitch(ILLabel[])

Emits a Switch opcode with a ILLabel operand to the current cursor position.
public ILCursor EmitSwitch(ILLabel[] operand)

Parameters

operand ILLabel[]
The emitted instruction's operand.

Returns

ILCursor
this

EmitSwitch(Instruction[])

Emits a Switch opcode with a Instruction operand to the current cursor position.
public ILCursor EmitSwitch(Instruction[] operand)

Parameters

operand Instruction[]
The emitted instruction's operand. Will be automatically converted to a ILLabel.

Returns

ILCursor
this