3 writes to comparer
mscorlib (3)
system\collections\generic\dictionary.cs (3)
94
this.
comparer
= comparer ?? EqualityComparer<TKey>.Default;
386
comparer
= (IEqualityComparer<TKey>) HashHelpers.GetRandomizedEqualityComparer(comparer);
409
comparer
= (IEqualityComparer<TKey>)siInfo.GetValue(ComparerName, typeof(IEqualityComparer<TKey>));
11 references to comparer
mscorlib (11)
system\collections\generic\dictionary.cs (11)
127
return
comparer
;
284
info.AddValue(ComparerName, HashHelpers.GetEqualityComparerForSerialization(
comparer
), typeof(IEqualityComparer<TKey>));
303
int hashCode =
comparer
.GetHashCode(key) & 0x7FFFFFFF;
305
if (entries[i].hashCode == hashCode &&
comparer
.Equals(entries[i].key, key)) return i;
326
int hashCode =
comparer
.GetHashCode(key) & 0x7FFFFFFF;
334
if (entries[i].hashCode == hashCode &&
comparer
.Equals(entries[i].key, key)) {
384
if(collisionCount > HashHelpers.HashCollisionThreshold && HashHelpers.IsWellKnownEqualityComparer(
comparer
))
386
comparer = (IEqualityComparer<TKey>) HashHelpers.GetRandomizedEqualityComparer(
comparer
);
452
newEntries[i].hashCode = (
comparer
.GetHashCode(newEntries[i].key) & 0x7FFFFFFF);
473
int hashCode =
comparer
.GetHashCode(key) & 0x7FFFFFFF;
477
if (entries[i].hashCode == hashCode &&
comparer
.Equals(entries[i].key, key)) {