Creates a new BitArray with the capacity to hold the specified number of bit values, and initializes each bit to the specified value.
[Visual Basic] Overloads Public Sub New( _ ByVal length As Integer, _ ByVal defaultValue As Boolean _ ) [C#] public BitArray( int length, bool defaultValue ); [C++] public: BitArray( int length, bool defaultValue ); [JScript] public function BitArray( length : int, defaultValue : Boolean );
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | length is less than zero. |
BitArray Class | BitArray Members | System.Collections Namespace | BitArray Constructor Overload List