Copies the values of the bits in an array of 32-bit integers into a new BitArray.
[Visual Basic] Overloads Public Sub New( _ ByVal values() As Integer _ ) [C#] public BitArray( int[] values ); [C++] public: BitArray( int* values[] ); [JScript] public function BitArray( values : int[] );
Exception Type | Condition |
---|---|
ArgumentException | values is a null reference object. |
The number in the first values array element represents bits 0- 31, the second number in the array represents bits 32- 63, etc. Further, the Least Significant Bit of each integer represents the lowest index value; values [0] & 1 represents bit 0, values [0] & 2 represents bit 1, values [0] and 4 represents bit 2, etc.
BitArray Class | BitArray Members | System.Collections Namespace | BitArray Constructor Overload List