3 writes to items
System.Activities.DurableInstancing (3)
System\Activities\DurableInstancing\BinaryHeap.cs (3)
27
this.
items
= new KeyValuePair<TKey, TValue>[capacity];
43
this.
items
= new KeyValuePair<TKey, TValue>[defaultCapacity];
175
this.
items
= temp;
34 references to items
System.Activities.DurableInstancing (34)
System\Activities\DurableInstancing\BinaryHeap.cs (34)
48
if (this.itemCount == this.
items
.Length)
50
ResizeItemStore(this.
items
.Length * 2);
53
this.
items
[this.itemCount++] = new KeyValuePair<TKey, TValue>(key, item);
68
KeyValuePair<TKey, TValue> result =
items
[0];
73
this.
items
[0] = this.EmptyItem;
78
this.
items
[0] = this.
items
[itemCount];
79
this.
items
[itemCount] = this.EmptyItem;
96
return this.
items
[0];
108
while (func(this.
items
[position]) && position < this.itemCount)
110
result.Add(this.
items
[position]);
114
while (func(this.
items
[lastItem]) && position < lastItem)
116
result.Add(this.
items
[lastItem]);
117
this.
items
[lastItem] = EmptyItem;
121
this.
items
[position] = this.
items
[lastItem];
122
this.
items
[lastItem] = EmptyItem;
140
if (this.
items
.Length > defaultCapacity && this.itemCount < (this.
items
.Length >> 1))
173
Array.Copy(this.
items
, 0, temp, 0, this.itemCount);
190
if (this.
items
[currentPosition].Key.CompareTo(this.
items
[leftChildPosition].Key) > 0)
202
if (this.
items
[swapPosition].Key.CompareTo(this.
items
[rightChildPosition].Key) > 0)
210
KeyValuePair<TKey, TValue> temp = this.
items
[currentPosition];
211
this.
items
[currentPosition] = this.
items
[swapPosition];
212
this.
items
[swapPosition] = temp;
229
if (this.
items
[parent].Key.CompareTo(this.
items
[startIndex].Key) > 0)
231
KeyValuePair<TKey, TValue> temp = this.
items
[startIndex];
232
this.
items
[startIndex] = this.
items
[parent];
233
this.
items
[parent] = temp;