2 writes to Item
System.Collections (2)
System\Collections\Generic\SortedDictionary.cs (1)
137node.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)) 121return node.Item.Value; 137node.Item = new KeyValuePair<TKey, TValue>(node.Item.Key, value); 221if (node.Item.Value == null) 234if (valueComparer.Equals(node.Item.Value, value)) 273value = node.Item.Value; 553_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { array[index++] = node.Item.Key; return true; }); 586_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { objects[index++] = node.Item.Key; return true; }); 714_dictionary._set.InOrderTreeWalk(delegate (TreeSet<KeyValuePair<TKey, TValue>>.Node node) { array[index++] = node.Item.Value; return true; }); 747_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))