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)
84
return _root.IsEmpty ? this : Empty.WithComparers(
_keyComparer
, _valueComparer);
175
get { return
_keyComparer
; }
209
return ref _root.ValueRef(key,
_keyComparer
);
248
ImmutableSortedDictionary<TKey, TValue>.Node result = _root.Add(key, value,
_keyComparer
, _valueComparer, out _);
259
ImmutableSortedDictionary<TKey, TValue>.Node result = _root.SetItem(key, value,
_keyComparer
, _valueComparer, out replacedExistingValue, out _);
291
ImmutableSortedDictionary<TKey, TValue>.Node result = _root.Remove(value,
_keyComparer
, out _);
307
ImmutableSortedDictionary<TKey, TValue>.Node newResult = result.Remove(key,
_keyComparer
, out mutated);
326
if (keyComparer ==
_keyComparer
)
337
return new ImmutableSortedDictionary<TKey, TValue>(_root, _count,
_keyComparer
, valueComparer);
434
return _root.ContainsKey(key,
_keyComparer
);
442
return _root.Contains(pair,
_keyComparer
, _valueComparer);
451
return _root.TryGetValue(key,
_keyComparer
, out value!);
460
return _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);
820
return root.IsEmpty ? this.Clear() : new ImmutableSortedDictionary<TKey, TValue>(root, adjustedCountIfDifferentRoot,
_keyComparer
, _valueComparer);