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