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.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Collections.Generic
Assembly: DotNext.dll
Syntax
public struct Enumerator.LimitedEnumerator<T> : IEnumerator<T>, IEnumerator, IDisposable
Type Parameters
Name Description
T

The type of elements returned by enumerator.

Properties

| Edit this page 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

| Edit this page View Source

Dispose()

Releases all resources associated with this enumerator.

Declaration
public void Dispose()
| Edit this page 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.

| Edit this page 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, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
Enumerator.Limit<T>(IEnumerator<T>, int, bool)
Enumerator.Skip<T>(IEnumerator<T>, int)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾