BitArray.ICollection.Count Property

.NET Framework (current version)

Gets the number of elements in the BitArray.

Namespace:  System.Collections
Assembly:  System.Collections (in System.Collections.dll)

private abstract Count : int with get 
private override Count : int with get

Property Value

Type: System.Int32
The number of elements in the BitArray.



Caution noteCaution

This member is not present in the Portable Class Library. If you are developing applications that target the Portable Class Library, use the Count property instead.

This member is an explicit interface member implementation. It can be used only when the BitArray instance is cast to an ICollection interface.

.NET Framework

Supported in: 4.6

Portable Class Library

Supported in: Portable Class Library