PriorityQueue<TElement,TPriority>.UnorderedItems Property

Definition

Gets a collection that enumerates the elements of the queue in an unordered manner.

C#
public System.Collections.Generic.PriorityQueue<TElement,TPriority>.UnorderedItemsCollection UnorderedItems { get; }

Property Value

Remarks

The enumeration does not order items by priority, since that would require N * log(N) time and N space. Instead, items are enumerated following the internal array heap layout.

Applies to

Termék Verziók
.NET 6, 7, 8, 9, 10