Share via


OpCodes.Not 欄位

定義

計算堆疊頂端的整數值的位元補數 (Complement),並將結果當做相同類型來推送至評估堆疊。

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) 元件格式,以及簡短的參考摘要:

格式 元件格式 Description
66 計算值的位補碼。

堆疊轉換行為依循序順序為:

  1. value 會推送至堆疊。

  2. value 會從堆疊快顯,並計算其位補碼。

  3. 結果會推送至堆疊。

指令 not 會計算整數值的位補碼,並將結果推送至堆疊。 傳回型別與操作數類型相同。

下列 Emit 方法多載可以使用 not opcode:

適用於