System.Reflection.Emit.OpCodes.Xor Field

Computes the bitwise XOR of the top two values on the evaluation stack, pushing the result onto the evaluation stack.

Syntax

public static readonly OpCode Xor

Remarks

The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

61

xor

Computes the bitwise XOR of two integer values and returns an integer.

The stack transitional behavior, in sequential order, is:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

The xor instruction computes the bitwise XOR of the top two values on the stack and leaves the result on the stack.

Xor is an integer-specific operation.

The following ILGenerator.Emit(OpCode) method overload can use the xor opcode:

  • ILGenerator.Emit(OpCode)

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0