Table of Contents

Method EmitStloc

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

EmitStloc(int)

Emits a Stloc or Stloc_S opcode with a int operand to the current cursor position.
public ILCursor EmitStloc(int operand)

Parameters

operand int
The emitted instruction's operand.

Returns

ILCursor
this

EmitStloc(uint)

Emits a Stloc or Stloc_S opcode with a uint operand to the current cursor position.
public ILCursor EmitStloc(uint operand)

Parameters

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

Returns

ILCursor
this

EmitStloc(VariableReference)

Emits a Stloc or Stloc_S opcode with a VariableReference operand to the current cursor position.
public ILCursor EmitStloc(VariableReference operand)

Parameters

operand VariableReference
The emitted instruction's operand.

Returns

ILCursor
this