OpCodes.Cgt_Un 字段

定义

比较两个无符号的或未经排序的值。Compares two unsigned or unordered values. 如果第一个值大于第二个值,则将整数值 1 (int32) 推送到计算堆栈上;反之,将 0 (int32) 推送到计算堆栈上。If the first value is greater than the second, the integer value 1 (int32) is pushed onto the evaluation stack; otherwise 0 (int32) is pushed onto the evaluation stack.

public: static initonly System::Reflection::Emit::OpCode Cgt_Un;
public static readonly System.Reflection.Emit.OpCode Cgt_Un;
 staticval mutable Cgt_Un : System.Reflection.Emit.OpCode
Public Shared ReadOnly Cgt_Un 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 03FE 03 cgt.uncgt.un 如果 value1 大于 value2,则推送 1;else 将0(无符号值)推送。Pushes 1 if value1 is greater than value2; else pushes 0 (unsigned values).

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

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

  2. value2 推送到堆栈上。value2 is pushed onto the stack.

  3. value2 和 @no__t 从堆栈中弹出;如果 value1 大于 value2,则 @no__t 测试。value2 and value1 are popped from the stack; cgt.un tests if value1 is greater than value2.

  4. 如果 value1 大于 value2,则将1推送到堆栈上;否则,将0推送到堆栈上。If value1 is greater than value2, 1 is pushed onto the stack; otherwise 0 is pushed onto the stack.

如果以下任何一项 @no__t 为1,则将 @no__t 值1推送到堆栈上:An int32 value of 1 is pushed on the stack if any of the following is true :

对于浮点数,value1 不按 @no__t 的顺序排序。For floating-point numbers, value1 is not ordered with respect to value2.

对于整数值,当被视为无符号数字时,value1 严格大于 value2For integer values, value1 is strictly greater than value2 when considered as unsigned numbers.

否则,将 @no__t 0 值0推送到堆栈上。Otherwise an int32 value of 0 is pushed on the stack.

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

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

适用于