Struct Sequence.Generator<T>.Enumerator
The enumerator over elements returned by generator method.
Inherited Members
Namespace: DotNext.Collections.Generic
Assembly: DotNext.dll
Syntax
public struct Enumerator
Properties
| Improve this Doc View SourceCurrent
Gets the element in the collection at the current position of the enumerator.
Declaration
public T Current { get; }
Property Value
Type | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The enumerator is empty. |
Methods
| Improve this Doc View SourceMoveNext()
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. |