Deque<(Of <(<'T>)>)>..::..GetEnumerator Method
Enumerates all of the items in the list, in order. The item at index 0
is enumerated first, then the item at index 1, and so on. If the items
are added to or removed from the Deque during enumeration, the
enumeration ends with an InvalidOperationException.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public IEnumerator<T> GetEnumerator()
Public Function GetEnumerator As IEnumerator(Of T)
public: IEnumerator<T>^ GetEnumerator()
Return Value
An IEnumerator<T> that enumerates all the items in the list.Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The Deque has an item added or deleted during the enumeration. |