OpCodes.And 字段
定义
计算两个值的按位“与”并将结果推送到计算堆栈上。Computes the bitwise AND of two values and pushes the result onto the evaluation stack.
public: static initonly System::Reflection::Emit::OpCode And;
public static readonly System.Reflection.Emit.OpCode And;
staticval mutable And : System.Reflection.Emit.OpCode
Public Shared ReadOnly And 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 | 指令Instruction | 说明Description |
|---|---|---|
| 5F5F | 和and | 确定两个整数值的按位 "与"。Determines the bitwise AND of two integer values. |
堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:
value1被推送到堆栈上。value1is pushed onto the stack.value2被推送到堆栈上。value2is pushed onto the stack.value1和value2从堆栈中弹出; 这两个值的按位 and。value1andvalue2are popped from the stack; the bitwise AND of the two values is computed.将结果推送到堆栈上。The result is pushed onto the stack.
and指令计算堆栈上的前两个值的按位 "与",并将结果保留在堆栈上。The and instruction computes the bitwise AND of the top two values on the stack and leaves the result on the stack.
And 是特定于整数的操作。And is an integer-specific operation.
以下 Emit 方法重载可以使用 and 操作码:The following Emit method overload can use the and opcode: