Struct WeakList<T>.Enumerator
Enumerates the values in a WeakList<T>.
Namespace: Singulink.Collections
Assembly: Singulink.Collections.Weak.dll
Syntax
public struct WeakList<T>.Enumerator
Remarks
Enumerators are safe to use while other threads modify the list, and they skip nodes whose values have been garbage collected. They can move in both directions, and moving past either end of the list wraps around to the other end.
Properties
| Name | Description |
|---|---|
| Current | Gets the value at the current position of the enumerator. |
| CurrentNode | Gets the node at the current position of the enumerator. |
| WasAddedDuringEnumeration | Gets a value indicating whether the node at the current position was added to the list after the enumerator was created. |
Methods
| Name | Description |
|---|---|
| AsEnumerable(bool, bool) | Returns an enumerable that continues this enumeration from its current position. |
| MoveNext() | Advances the enumerator to the next value in the list. |
| MovePrevious() | Moves the enumerator to the previous value in the list. |