Table of Contents

Method EmitLdloc

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

EmitLdloc(int)

Emits a Ldloc or Ldloc_S opcode with a int operand to the current cursor position.
public ILCursor EmitLdloc(int operand)

Parameters

operand int
The emitted instruction's operand.

Returns

ILCursor
this

EmitLdloc(uint)

Emits a Ldloc or Ldloc_S opcode with a uint operand to the current cursor position.
public ILCursor EmitLdloc(uint operand)

Parameters

operand uint
The emitted instruction's operand. Will be automatically converted to a int.

Returns

ILCursor
this

EmitLdloc(VariableReference)

Emits a Ldloc or Ldloc_S opcode with a VariableReference operand to the current cursor position.
public ILCursor EmitLdloc(VariableReference operand)

Parameters

operand VariableReference
The emitted instruction's operand.

Returns

ILCursor
this