Property Current
Current
Gets the value at the current position of the enumerator.
Declaration
public readonly T Current { get; }
Property Value
| Type | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The enumerator is not positioned on a value, either because enumeration has not started, has reached the end, or the list has been disposed. An enumerator created from a start node is not positioned on a value until MoveNext() or MovePrevious() is called. |