Method Cardinality Cardinality() Returns number of set bits. NOTE: this visits every in the backing bits array, and the result is not internally cached! Declaration public int Cardinality() Returns Type Description System.Int32