Show / Hide Table of Contents

Struct BitArrayExtensions.SetBitsEnumerator

Gets an enumerator over set bits.

Implements
IEnumerator<BitArrayExtensions.SetBitsEnumerator, int>
IResettable
IEnumerable<int>
IEnumerable
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext.Collections
Assembly: DotNext.dll
Syntax
public struct BitArrayExtensions.SetBitsEnumerator : IEnumerator<BitArrayExtensions.SetBitsEnumerator, int>, IResettable, IEnumerable<int>, IEnumerable

Properties

View Source

Current

Gets the current index.

Declaration
public readonly int Current { get; }
Property Value
Type Description
int
View Source

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 Source

GetEnumerator()

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.

View Source

MoveNext()

Advances to the next set bit.

Declaration
public bool MoveNext()
Returns
Type Description
bool

true if the next set bit is found; otherwise, false.

Implements

IEnumerator<TSelf, T>
IResettable
IEnumerable<T>
IEnumerable

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
Collection.Append<T>(IEnumerable<T>, params IEnumerable<T>)
Collection.Copy<T>(IEnumerable<T>, int, MemoryAllocator<T>?)
Collection.FirstOrNone<T>(IEnumerable<T>)
Collection.ForEachAsync<T>(IEnumerable<T>, Func<T, CancellationToken, ValueTask>, CancellationToken)
Collection.ForEach<T>(IEnumerable<T>, Action<T>)
Collection.LastOrNone<T>(IEnumerable<T>)
Collection.Prepend<T>(IEnumerable<T>, params IEnumerable<T>)
Collection.SequenceHashCode<T>(IEnumerable<T>, bool)
Collection.ToAsyncEnumerable<T>(IEnumerable<T>, bool)
Collection.ToString<T>(IEnumerable<T>, string, string)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾