2 writes to _heap
PresentationCore (2)
Shared\MS\Internal\PriorityQueue.cs (2)
73
_heap
= new T[capacity > 0 ? capacity : DefaultCapacity];
116
Array.Resize<T>(ref
_heap
, _count * 2);
14 references to _heap
PresentationCore (14)
Shared\MS\Internal\PriorityQueue.cs (14)
104
return
_heap
[0];
114
if (_count ==
_heap
.Length)
129
_heap
[_count] = value;
163
T x =
_heap
[_count]; // lift item x out from the last position
166
_heap
[_count] = default(T); // don't leak x
192
(rightChild < _count && _comparer.Compare(
_heap
[rightChild],
_heap
[leftChild]) < 0) ?
196
_heap
[parent] =
_heap
[bestChild];
213
if (_comparer.Compare(
_heap
[parent], x) > 0)
215
_heap
[index] =
_heap
[parent];
223
_heap
[index] = x;
248
T x =
_heap
[i];