2 writes to _valueComparer
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (2)
54
_valueComparer
= valueComparer ?? EqualityComparer<TValue>.Default;
76
_valueComparer
= valueComparer;
12 references to _valueComparer
System.Collections.Immutable (12)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (12)
84
return _root.IsEmpty ? this : Empty.WithComparers(_keyComparer,
_valueComparer
);
94
get { return
_valueComparer
; }
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 _);
328
if (valueComparer ==
_valueComparer
)
354
return this.WithComparers(keyComparer,
_valueComparer
);
371
return _root.ContainsValue(value,
_valueComparer
);
442
return _root.Contains(pair, _keyComparer,
_valueComparer
);
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
);
863
if (!
_valueComparer
.Equals(value, item.Value))