System.Collections.BitArray: Method Members

The methods of System.Collections.BitArray are listed below. For a list of all members, see the BitArray Members list.

See Also: Inherited members from System.Object

Public Methods

And(BitArray) : BitArray

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

Clone() : object

Creates a shallow copy of the BitArray.

CopyTo(Array, int)

Copies the entire BitArray to a compatible one-dimensional Array, starting at the specified index of the target array.

Get(int) : bool

Gets the value of the bit at a specific position in the BitArray.

GetEnumerator() : IEnumerator

Returns an enumerator that iterates through the BitArray.

Not() : BitArray

Inverts all the bit values in the current BitArray, so that elements set to true are changed to false, and elements set to false are changed to true.

Or(BitArray) : BitArray

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

Set(int, bool)

Sets the bit at a specific position in the BitArray to the specified value.

SetAll(bool)

Sets all bits in the BitArray to the specified value.

Xor(BitArray) : BitArray

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