Gets or sets the number of elements in the BitArray.
A int that specifies the number of elements contained in the current instance.
BitArray.Length and BitArray.Count return the same value. BitArray.Length can be set to a specific value, but BitArray.Count is read-only.
If BitArray.Length is set to a value that is less than BitArray.Count, the BitArray is truncated and the elements after the index value -1 are deleted.
If BitArray.Length is set to a value that is greater than BitArray.Count, the new elements are set to false.
Retrieving the value of this property is an O(1) operation. Setting this property is an O(n) operation.