Table of Contents

Method EmitCastclass

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

EmitCastclass(TypeReference)

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

Parameters

operand TypeReference
The emitted instruction's operand.

Returns

ILCursor
this

EmitCastclass(Type)

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

Parameters

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

Returns

ILCursor
this