4 writes to _comparer
System.Collections (4)
System\Collections\Generic\OrderedDictionary.cs (4)
117
_comparer
= comparer ?? EqualityComparer<TKey>.Default;
123
_comparer
= (IEqualityComparer<TKey>)stringComparer;
130
_comparer
= comparer;
1108
IEqualityComparer<TKey> comparer =
_comparer
= (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetUnderlyingEqualityComparer();
11 references to _comparer
System.Collections (11)
System\Collections\Generic\OrderedDictionary.cs (11)
121
NonRandomizedStringEqualityComparer.GetStringComparer(
_comparer
) is IEqualityComparer<string> stringComparer)
219
IEqualityComparer<TKey>? comparer =
_comparer
;
620
IEqualityComparer<TKey>? comparer =
_comparer
;
825
if (typeof(TKey).IsValueType &&
_comparer
is null)
835
Debug.Assert(
_comparer
is not null);
836
if (
_comparer
.Equals(key, e.Key))
1068
_comparer
is NonRandomizedStringEqualityComparer)
1107
Debug.Assert(
_comparer
is NonRandomizedStringEqualityComparer);
1108
IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)
_comparer
).GetUnderlyingEqualityComparer();
1109
Debug.Assert(
_comparer
is not null);
1110
Debug.Assert(
_comparer
is not NonRandomizedStringEqualityComparer);