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:

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

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

  3. value1 和 @no__t 从堆栈中弹出;计算两个值的按位 "与"。value1 and value2 are popped from the stack; the bitwise AND of the two values is computed.

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

@No__t-0 指令计算堆栈上前两个值的按位 "与",并将结果保留在堆栈上。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.

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

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