OpCodes.Refanytype 字段

定义

检索嵌入在类型化引用内的类型标记。Retrieves the type token embedded in a typed reference.

public: static initonly System::Reflection::Emit::OpCode Refanytype;
public static readonly System.Reflection.Emit.OpCode Refanytype;
 staticval mutable Refanytype : System.Reflection.Emit.OpCode
Public Shared ReadOnly Refanytype As OpCode 

字段值

注解

下表列出了指令的十六进制和 Microsoft 中间语言(MSIL)程序集格式以及简短的参考摘要:The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

格式Format 程序集格式Assembly Format 说明Description
FE 1DFE 1D refanytyperefanytype 推送在类型化引用中存储的类型标记。Pushes the type token stored in a typed reference.

堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:

  1. 值类型引用被推送到堆栈上。A value type reference is pushed onto the stack.

  2. 类型化引用从堆栈中弹出,并检索其相应的类型标记。The typed reference is popped from the stack and its corresponding type token retrieved.

  3. 类型标记被推送到堆栈上。The type token is pushed onto the stack.

类型化引用包含对象实例的类型标记和地址。A typed reference contains a type token and an address to an object instance.

@No__t-0 指令检索嵌入在类型化引用中的类型标记。The refanytype instruction retrieves the type token embedded in the typed reference. 有关创建类型化引用的信息,请参阅 Mkrefany 指令。See the Mkrefany instruction for information on creating typed references.

以下 @no__t 0 方法重载可以使用 @no__t 操作码:The following Emit method overload can use the refanytype opcode:

  • ILGenerator.Emit(OpCode)ILGenerator.Emit(OpCode)

适用于