Method EmitLdtoken
EmitLdtoken(IMetadataTokenProvider)
Emits a Ldtoken opcode with a IMetadataTokenProvider operand to the current cursor position.
public ILCursor EmitLdtoken(IMetadataTokenProvider operand)
Parameters
operandIMetadataTokenProvider- The emitted instruction's operand.
Returns
EmitLdtoken(Type)
public ILCursor EmitLdtoken(Type operand)
Parameters
operandType- The emitted instruction's operand. Will be automatically converted to a IMetadataTokenProvider.
Returns
EmitLdtoken(FieldInfo)
public ILCursor EmitLdtoken(FieldInfo operand)
Parameters
operandFieldInfo- 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
operandMethodBase- The emitted instruction's operand. Will be automatically converted to a IMetadataTokenProvider.