OpCodes.Not 字段


计算堆栈顶部整数值的按位求补并将结果作为相同的类型推送到计算堆栈上。Computes the bitwise complement of the integer value on top of the stack and pushes the result onto the evaluation stack as the same type.

public: static initonly System::Reflection::Emit::OpCode Not;
public static readonly System.Reflection.Emit.OpCode Not;
 staticval mutable Not : System.Reflection.Emit.OpCode
Public Shared ReadOnly Not 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
6666 notnot 计算值的按位求补。Computes the bitwise complement of a value.

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

  1. value 推送到堆栈上。value is pushed onto the stack.

  2. 从堆栈中弹出 value 并计算按位求补。value is popped from the stack and its bitwise complement computed.

  3. 将结果推送到堆栈上。The result is pushed onto the stack.

@No__t-0 指令计算整数值的按位求补并将结果推送到堆栈上。The not instruction computes the bitwise complement of an integer value and pushes the result onto the stack. 返回类型与操作数类型相同。The return type is the same as the operand type.

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

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