Show / Hide Table of Contents

Struct Enumerator.LimitedEnumerator<T>

Wrapped for the enumerator which is limited by count.

Implements
IEnumerator<T>
IEnumerator
IDisposable
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext.Collections.Generic
Assembly: DotNext.dll
Syntax
public struct Enumerator.LimitedEnumerator<T> : IEnumerator<T>, IEnumerator, IDisposable where T : allows ref struct
Type Parameters
Name Description
T

The type of elements returned by enumerator.

Properties

View Source

Current

Gets the element in the collection at the current position of the enumerator.

Declaration
public readonly T Current { get; }
Property Value
Type Description
T

Methods

View Source

Dispose()

Releases all resources associated with this enumerator.

Declaration
public void Dispose()
View Source

MoveNext()

Advances the enumerator to the next element.

Declaration
public bool MoveNext()
Returns
Type Description
bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

View Source

Reset()

Sets the enumerator to its initial position.

Declaration
public readonly void Reset()

Implements

IEnumerator<T>
IEnumerator
IDisposable

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
Enumerator.Limit<T>(IEnumerator<T>, int, bool)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾