Table of Contents

Method EmitInitobj

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

EmitInitobj(TypeReference)

Emits a Initobj opcode with a TypeReference operand to the current cursor position.
public ILCursor EmitInitobj(TypeReference operand)

Parameters

operand TypeReference
The emitted instruction's operand.

Returns

ILCursor
this

EmitInitobj(Type)

Emits a Initobj opcode with a Type operand to the current cursor position.
public ILCursor EmitInitobj(Type operand)

Parameters

operand Type
The emitted instruction's operand. Will be automatically converted to a TypeReference.

Returns

ILCursor
this