Method AsEnumerable
AsEnumerable(bool, bool)
Returns an enumerable that continues this enumeration from its current position.
Declaration
public readonly IEnumerable<WeakList<T>.Node> 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<WeakList<T>.Node> |
Remarks
Nodes whose values have been garbage collected are included.
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The enumerator was not created by a list. |