Struct BitArrayExtensions.SetBitsEnumerator
Gets an enumerator over set bits.
Implements
Inherited Members
Namespace: DotNext.Collections
Assembly: DotNext.dll
Syntax
public struct BitArrayExtensions.SetBitsEnumerator : IEnumerator<BitArrayExtensions.SetBitsEnumerator, int>, IResettable, IEnumerable<int>, IEnumerable
Properties
View SourceCurrent
Gets the current index.
Declaration
public readonly int Current { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsDefault
Gets a value indicating that this enumerator is constructed as default value.
Declaration
public readonly bool IsDefault { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceGetEnumerator()
Gets an enumerator over indices of set bits.
Declaration
public BitArrayExtensions.SetBitsEnumerator GetEnumerator()
Returns
| Type | Description |
|---|---|
| BitArrayExtensions.SetBitsEnumerator | An enumerator over indices of set bits. |
MoveNext()
Advances to the next set bit.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| bool |