Table of Contents

Method EmitLdtoken

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

EmitLdtoken(IMetadataTokenProvider)

Emits a Ldtoken opcode with a IMetadataTokenProvider operand to the current cursor position.
public ILCursor EmitLdtoken(IMetadataTokenProvider operand)

Parameters

operand IMetadataTokenProvider
The emitted instruction's operand.

Returns

ILCursor
this

EmitLdtoken(Type)

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

Parameters

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

Returns

ILCursor
this

EmitLdtoken(FieldInfo)

Emits a Ldtoken opcode with a FieldInfo operand to the current cursor position.
public ILCursor EmitLdtoken(FieldInfo operand)

Parameters

operand FieldInfo
The emitted instruction's operand. Will be automatically converted to a IMetadataTokenProvider.

Returns

ILCursor
this

EmitLdtoken(MethodBase)

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

Parameters

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

Returns

ILCursor
this