Method AsEnumerable
AsEnumerable(bool, bool)
Returns an enumerable that continues this enumeration from its current position.
Declaration
public readonly IEnumerable<T> AsEnumerable(bool reversed = false, bool skipNewNodes = false)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | reversed | true to enumerate towards the start of the list; false to enumerate towards the end. |
| bool | skipNewNodes | true to skip nodes that were added to the list after this enumerator was created; false to include them. |
Returns
| Type | Description |
|---|---|
| IEnumerable<T> |
Remarks
Nodes whose values have been garbage collected are skipped.
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The enumerator was not created by a list. |