Table of Contents

Method EmitNewobj

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

EmitNewobj(MethodReference)

Emits a Newobj opcode with a MethodReference operand to the current cursor position.
public ILCursor EmitNewobj(MethodReference operand)

Parameters

operand MethodReference
The emitted instruction's operand.

Returns

ILCursor
this

EmitNewobj(MethodBase)

Emits a Newobj opcode with a MethodBase operand to the current cursor position.
public ILCursor EmitNewobj(MethodBase operand)

Parameters

operand MethodBase
The emitted instruction's operand. Will be automatically converted to a MethodReference.

Returns

ILCursor
this