Show / Hide Table of Contents

Struct Sequence.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 LimitedEnumerator<T> : IEnumerator<T>, IEnumerator, IDisposable
Type Parameters
Name Description
T

The type of elements returned by enumerator.

Properties

| Improve this Doc View Source

Current

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

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

Methods

| Improve this Doc View Source

Dispose()

Releases all resources associated with this enumerator.

Declaration
public void Dispose()
| Improve this Doc View Source

MoveNext()

Advances the enumerator to the next element.

Declaration
public bool MoveNext()
Returns
Type Description
Boolean

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

| Improve this Doc View Source

Reset()

Sets the enumerator to its initial position.

Declaration
public void Reset()

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerator.Current

Declaration
object IEnumerator.Current { get; }
Returns
Type Description
Object

Implements

System.Collections.Generic.IEnumerator<T>
System.Collections.IEnumerator
System.IDisposable

Extension Methods

Sequence.Skip<T>(IEnumerator<T>, Int32)
Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
Sequence.Limit<T>(IEnumerator<T>, Int32, Boolean)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX