2 writes to _keyComparer
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (2)
53_keyComparer = keyComparer ?? Comparer<TKey>.Default; 75_keyComparer = keyComparer;
16 references to _keyComparer
System.Collections.Immutable (16)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (16)
84return _root.IsEmpty ? this : Empty.WithComparers(_keyComparer, _valueComparer); 175get { return _keyComparer; } 209return ref _root.ValueRef(key, _keyComparer); 248ImmutableSortedDictionary<TKey, TValue>.Node result = _root.Add(key, value, _keyComparer, _valueComparer, out _); 259ImmutableSortedDictionary<TKey, TValue>.Node result = _root.SetItem(key, value, _keyComparer, _valueComparer, out replacedExistingValue, out _); 291ImmutableSortedDictionary<TKey, TValue>.Node result = _root.Remove(value, _keyComparer, out _); 307ImmutableSortedDictionary<TKey, TValue>.Node newResult = result.Remove(key, _keyComparer, out mutated); 326if (keyComparer == _keyComparer) 337return new ImmutableSortedDictionary<TKey, TValue>(_root, _count, _keyComparer, valueComparer); 434return _root.ContainsKey(key, _keyComparer); 442return _root.Contains(pair, _keyComparer, _valueComparer); 451return _root.TryGetValue(key, _keyComparer, out value!); 460return _root.TryGetKey(equalKey, _keyComparer, out actualKey); 795? result.SetItem(item.Key, item.Value, _keyComparer, _valueComparer, out replacedExistingValue, out mutated) 796: result.Add(item.Key, item.Value, _keyComparer, _valueComparer, out mutated); 820return root.IsEmpty ? this.Clear() : new ImmutableSortedDictionary<TKey, TValue>(root, adjustedCountIfDifferentRoot, _keyComparer, _valueComparer);