System.Collections.BitArray.Xor Method

Performs the bitwise exclusive OR operation on the elements in the current BitArray against the corresponding elements in the specified BitArray.

Syntax

public BitArray Xor (BitArray value)

Parameters

value
The BitArray with which to perform the bitwise exclusive OR operation.

Returns

The current instance containing the result of the bitwise exclusive OR operation on the elements in the current BitArray against the corresponding elements in the specified BitArray.

Remarks

The bitwise exclusive OR operation returns true if exactly one operand is true, and returns false if both operands have the same Boolean value.

This method is an O(n) operation, where n is BitArray.Count.

Requirements

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