Struct Enumerator.LimitedEnumerator<T>
Wrapped for the enumerator which is limited by count.
Inherited Members
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 SourceCurrent
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 SourceDispose()
Releases all resources associated with this enumerator.
Declaration
public void Dispose()
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. |
Reset()
Sets the enumerator to its initial position.
Declaration
public readonly void Reset()