OpCodes.Arglist 字段


返回指向当前方法的参数列表的非托管指针。Returns an unmanaged pointer to the argument list of the current method.

public: static initonly System::Reflection::Emit::OpCode Arglist;
public static readonly System.Reflection.Emit.OpCode Arglist;
 staticval mutable Arglist : System.Reflection.Emit.OpCode
Public Shared ReadOnly Arglist 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 00FE 00 arglistarglist 返回当前方法的参数列表句柄。Returns an argument list handle for the current method.

此操作不会执行任何计算堆栈行为。No evaluation stack behaviors are performed by this operation.

@No__t-0 指令返回一个不透明的句柄(类型为 native int 的非托管指针),表示当前方法的参数列表。The arglist instruction returns an opaque handle (an unmanaged pointer, of type native int) that represents the argument list of the current method. 此句柄仅在当前方法的生存期内有效。This handle is valid only during the lifetime of the current method. 但是,只要当前方法在控制线程上,你就可以将该句柄传递给其他方法。You can, however, pass the handle to other methods as long as the current method is on the thread of control. 只能在采用可变数目的参数的方法中执行 arglist 指令。You can only execute the arglist instruction within a method that takes a variable number of arguments.

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

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