Method EmitLdtoken
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
EmitLdtoken(Type)
public ILCursor EmitLdtoken(Type operand)
Parameters
operand
Type- The emitted instruction's operand. Will be automatically converted to a IMetadataTokenProvider.
Returns
EmitLdtoken(FieldInfo)
public ILCursor EmitLdtoken(FieldInfo operand)
Parameters
operand
FieldInfo- The emitted instruction's operand. Will be automatically converted to a IMetadataTokenProvider.
Returns
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.