This documentation is archived and is not being maintained.

BitArray Members

BitArray overview

Public Constructors

public constructorBitArray Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the BitArray class whose capacity and initial values can be specified.

Public Properties

public propertyCount

Supported by the .NET Compact Framework.

Gets the number of elements contained in the BitArray.
public propertyIsReadOnly

Supported by the .NET Compact Framework.

Gets a value indicating whether the BitArray is read-only.
public propertyIsSynchronized

Supported by the .NET Compact Framework.

Gets a value indicating whether access to the BitArray is synchronized (thread-safe).
public propertyItem Gets or sets the value of the bit at a specific position in the BitArray.

In C#, this property is the indexer for the BitArray class.

public propertyLength

Supported by the .NET Compact Framework.

Gets or sets the number of elements in the BitArray.
public propertySyncRoot

Supported by the .NET Compact Framework.

Gets an object that can be used to synchronize access to the BitArray.

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: