3 writes to _count
PresentationCore (3)
Shared\MS\Internal\PriorityQueue.cs (3)
74
_count
= 0;
132
_count
++;
148
--
_count
;
13 references to _count
PresentationCore (13)
Shared\MS\Internal\PriorityQueue.cs (13)
87
get { return
_count
; }
98
Debug.Assert(
_count
> 0);
114
if (
_count
== _heap.Length)
116
Array.Resize<T>(ref _heap,
_count
* 2);
125
SiftUp(
_count
, ref value, 0);
129
_heap[
_count
] = value;
140
Debug.Assert(
_count
!= 0);
146
if (
_count
> 0)
163
T x = _heap[
_count
]; // lift item x out from the last position
166
_heap[
_count
] = default(T); // don't leak x
188
while (leftChild <
_count
)
192
(rightChild <
_count
&& _comparer.Compare(_heap[rightChild], _heap[leftChild]) < 0) ?
245
for (int i =
_count
/2 - 1; i >= 0; --i)