2 writes to Item
System.Collections (2)
System\Collections\Generic\SortedDictionary.cs (1)
131node.Item = new KeyValuePair<TKey, TValue>(node.Item.Key, value);
System\Collections\Generic\SortedSet.cs (1)
1598Item = item;
44 references to Item
System.Collections (44)
System\Collections\Generic\SortedDictionary.cs (12)
74return node.Item.Value == null; 78return EqualityComparer<TValue>.Default.Equals(node.Item.Value, keyValuePair.Value); 90if (EqualityComparer<TValue>.Default.Equals(node.Item.Value, keyValuePair.Value)) 118return node.Item.Value; 131node.Item = new KeyValuePair<TKey, TValue>(node.Item.Key, value); 215if (node.Item.Value == null) 228if (valueComparer.Equals(node.Item.Value, value)) 267value = node.Item.Value; 547_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { array[index++] = node.Item.Key; return true; }); 580_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { objects[index++] = node.Item.Key; return true; }); 708_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { array[index++] = node.Item.Value; return true; }); 741_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { objects[index++] = node.Item.Value; return true; });
System\Collections\Generic\SortedSet.cs (20)
329order = comparer.Compare(item, current.Item); 474int order = foundMatch ? -1 : comparer.Compare(item, current.Item); 535array[index++] = node.Item; 578objects[index++] = node.Item; 698int order = comparer.Compare(item, current.Item); 730int order = comparer.Compare(item, current.Item); 750if (lowerBoundActive && comparer.Compare(from, current.Item) > 0) 756if (upperBoundActive && comparer.Compare(to, current.Item) < 0) 1436if (match(n.Item)) 1438matches.Add(n.Item); 1477return current.Item; 1498return current.Item; 1687public Node ShallowClone() => new Node(Item, Color); 1880if (_tree.IsWithinRange(node.Item)) 1885else if (next == null || !_tree.IsWithinRange(next.Item)) 1919if (_tree.IsWithinRange(node.Item)) 1924else if (other == null || !_tree.IsWithinRange(other.Item)) 1944return _current.Item; 1959return _current.Item; 2006actualValue = node.Item;
System\Collections\Generic\SortedSet.TreeSubSet.cs (12)
100BreadthFirstTreeWalk(n => { toRemove.Add(n.Item); return true; }); 135int comp = _lBoundActive ? Comparer.Compare(_min, current.Item) : -1; 142result = current.Item; 165int comp = _uBoundActive ? Comparer.Compare(_max, current.Item) : 1; 172result = current.Item; 200if (IsWithinRange(current.Item)) 205else if (_lBoundActive && Comparer.Compare(_min, current.Item) > 0) 226if (IsWithinRange(node.Item)) 231else if (_lBoundActive && Comparer.Compare(_min, node.Item) > 0) 260if (IsWithinRange(current.Item) && !action(current)) 264if (current.Left != null && (!_lBoundActive || Comparer.Compare(_min, current.Item) < 0)) 268if (current.Right != null && (!_uBoundActive || Comparer.Compare(_max, current.Item) > 0))