Method Cardinality
Cardinality(BitArray)
Returns the number of bits set to true in this BitSet.
Declaration
public static int Cardinality(this BitArray bits)
Parameters
Type | Name | Description |
---|---|---|
BitArray | bits | The BitArray object. |
Returns
Type | Description |
---|---|
System.Int32 | The number of bits set to true in this BitSet. |