Click or drag to resize

PriorityQueue<T> .GetEnumerator Method

Returns an enumerator that iterates through the collection.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.239-beta+5928cebde0dd955df84e791f5ea67acbd192773e
Syntax
public IEnumerator<T> GetEnumerator()
View Source

Return Value

IEnumerator<T>
A IEnumerator<T> that can be used to iterate through the collection.

Implements

IEnumerable<T>.GetEnumerator()
Remarks
The enumerator performs an in-order traversal of the heap, so the caller should expect that items will be iterated in no particular order. Any operations that would modify the collection during iteration will cause the enumerator to throw an InvalidOperationException.
See Also