PriorityQueue<TElement,TPriority>.UnorderedItemsCollection.Enumerator Struct

Definition

Enumerates the element and priority pairs of a PriorityQueue<TElement,TPriority>, without any ordering guarantees.

C#
public struct PriorityQueue<TElement,TPriority>.UnorderedItemsCollection.Enumerator : System.Collections.Generic.IEnumerator<(TElement, TPriority)>

Type Parameters

TElement
TPriority
Inheritance
PriorityQueue<TElement,TPriority>.UnorderedItemsCollection.Enumerator
Implements

Properties

Current

Gets the element at the current position of the enumerator.

Methods

Dispose()

Releases all resources used by the PriorityQueue<TElement,TPriority>.UnorderedItemsCollection.Enumerator.

MoveNext()

Advances the enumerator to the next element of the UnorderedItems.

Explicit Interface Implementations

IEnumerator.Current

Gets the element in the collection at the current position of the enumerator.

IEnumerator.Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

IEnumerator<ValueTuple<TElement,TPriority>>.Current

Gets the element in the collection at the current position of the enumerator.

Applies to

Product Versions
.NET 6, 7, 8, 9