1 write to _queue
System.Collections (1)
System\Collections\Generic\PriorityQueue.cs (1)
943
internal UnorderedItemsCollection(PriorityQueue<TElement, TPriority> queue) =>
_queue
= queue;
7 references to _queue
System.Collections (7)
System\Collections\Generic\PriorityQueue.cs (6)
945
public int Count =>
_queue
._size;
968
if (array.Length - index <
_queue
._size)
975
Array.Copy(
_queue
._nodes, 0, array, index,
_queue
._size);
1059
public Enumerator GetEnumerator() => new Enumerator(
_queue
);
1062
_queue
.Count == 0 ? EnumerableHelpers.GetEmptyEnumerator<(TElement Element, TPriority Priority)>() :
System\Collections\Generic\PriorityQueueDebugView.cs (1)
23
_queue = collection?.
_queue
?? throw new ArgumentNullException(nameof(collection));