Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BitArray Methods

The methods of the BitArray class are listed here. For a complete list of BitArray class members, see the BitArray Members topic.

Public Methods

public methodAnd

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Creates a shallow copy of the BitArray.
public methodCopyTo

Supported by the .NET Compact Framework.

Copies the entire BitArray to a compatible one-dimensional Array, starting at the specified index of the target array.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGet

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Returns an enumerator that can iterate through the BitArray.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodNot

Supported by the .NET Compact Framework.

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.
public methodOr

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Sets all bits in the BitArray to the specified value.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodXor

Supported by the .NET Compact Framework.

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

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

BitArray Class | System.Collections Namespace

Show:
© 2015 Microsoft