2 writes to _comparer
Microsoft.Build.Framework (2)
SegmentedDictionary`2.cs (2)
91_comparer = comparer; 96_comparer ??= EqualityComparer<TKey>.Default;
8 references to _comparer
Microsoft.Build.Framework (8)
SegmentedDictionary`2.cs (8)
54/// <see cref="_comparer"/> is initialized to a non-<see langword="null"/> value. 161return _comparer ?? EqualityComparer<TKey>.Default; 338var comparer = _comparer; 484var comparer = _comparer; 689var hashCode = (uint)(_comparer?.GetHashCode(key) ?? key.GetHashCode()); 698if (entry._hashCode == hashCode && (_comparer?.Equals(entry._key, key) ?? EqualityComparer<TKey>.Default.Equals(entry._key, key))) 761var hashCode = (uint)(_comparer?.GetHashCode(key) ?? key.GetHashCode()); 770if (entry._hashCode == hashCode && (_comparer?.Equals(entry._key, key) ?? EqualityComparer<TKey>.Default.Equals(entry._key, key)))