Method NextSetBit
NextSetBit(BitArray, Int32)
Returns the next set bit at or after index, or -1 if no such bit exists.
Declaration
public static int NextSetBit(this BitArray bitArray, int index)
Parameters
Type | Name | Description |
---|---|---|
BitArray | bitArray | |
System.Int32 | index | the index of bit array at which to start checking |
Returns
Type | Description |
---|---|
System.Int32 | the next set bit or -1 |