NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BitArray.Xor

Performs the bitwise eXclusive OR operator on the elements in the current BitArray against the corresponding elements in the specified BitArray.

[Visual Basic]
Public Function Xor( _
   ByVal value As BitArray _
) As BitArray
[C#]
public BitArray Xor(
   BitArray value
);
[C++]
public: BitArray* Xor(
   BitArray* value
);
[JScript]
public function Xor(
   value : BitArray
) : BitArray;

Parameters

value
The BitArray with which to perform the bitwise eXclusive OR operator.

Return Value

A BitArray containing the result of the bitwise eXclusive OR operator on the elements in the current BitArray against the corresponding elements in the specified BitArray.

Exceptions

Exception Type Condition
ArgumentNullException value is a null reference object.
ArgumentException value and the current BitArray do not have the same number of elements.

Remarks

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

See Also

BitArray Class | BitArray Members | System.Collections Namespace