4 writes to _comparer
System.Collections (4)
System\Collections\Generic\OrderedDictionary.cs (4)
123
_comparer
= comparer ?? EqualityComparer<TKey>.Default;
129
_comparer
= (IEqualityComparer<TKey>)stringComparer;
136
_comparer
= comparer;
1105
IEqualityComparer<TKey> comparer =
_comparer
= (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)_comparer).GetUnderlyingEqualityComparer();
11 references to _comparer
System.Collections (11)
System\Collections\Generic\OrderedDictionary.cs (11)
127
NonRandomizedStringEqualityComparer.GetStringComparer(
_comparer
) is IEqualityComparer<string> stringComparer)
225
IEqualityComparer<TKey>? comparer =
_comparer
;
625
IEqualityComparer<TKey>? comparer =
_comparer
;
824
if (typeof(TKey).IsValueType &&
_comparer
is null)
834
Debug.Assert(
_comparer
is not null);
835
if (
_comparer
.Equals(key, e.Key))
1065
_comparer
is NonRandomizedStringEqualityComparer)
1104
Debug.Assert(
_comparer
is NonRandomizedStringEqualityComparer);
1105
IEqualityComparer<TKey> comparer = _comparer = (IEqualityComparer<TKey>)((NonRandomizedStringEqualityComparer)
_comparer
).GetUnderlyingEqualityComparer();
1106
Debug.Assert(
_comparer
is not null);
1107
Debug.Assert(
_comparer
is not NonRandomizedStringEqualityComparer);