Manages a compact array of bit values, which are represented as booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0).
Object
BitArray
[Visual Basic] NotInheritable Public Class BitArray [C#] public sealed class BitArray [C++] public __gc __sealed class BitArray [JScript] public class BitArray
The size of a BitArray is controlled by the client; indexing past the end of the BitArray throws an ArgumentException.
This class provides a simple set of capabilities on an array of bit values.
Namespace: System.Collections
Assembly: mscorlib.dll
The intended use for BitArray is:
if (bitflag->Get(bitindex)) { ... }