3 writes to m_comparer
System.Core (3)
System\Collections\Generic\HashSet.cs (3)
112
this.
m_comparer
= comparer;
398
m_comparer
= (IEqualityComparer<T>)m_siInfo.GetValue(ComparerName, typeof(IEqualityComparer<T>));
1086
m_comparer
= (IEqualityComparer<T>) HashHelpers.GetRandomizedEqualityComparer(m_comparer);
10 references to m_comparer
System.Core (10)
System\Collections\Generic\HashSet.cs (10)
264
if (m_slots[i].hashCode == hashCode &&
m_comparer
.Equals(m_slots[i].value, item)) {
293
if (m_slots[i].hashCode == hashCode &&
m_comparer
.Equals(m_slots[i].value, item)) {
369
info.AddValue(ComparerName, HashHelpers.GetEqualityComparerForSerialization(
m_comparer
), typeof(IEqualityComparer<T>));
900
return
m_comparer
;
1055
if (m_slots[i].hashCode == hashCode &&
m_comparer
.Equals(m_slots[i].value, value)) {
1085
if(collisionCount > HashHelpers.HashCollisionThreshold && HashHelpers.IsWellKnownEqualityComparer(
m_comparer
)) {
1086
m_comparer = (IEqualityComparer<T>) HashHelpers.GetRandomizedEqualityComparer(
m_comparer
);
1222
if ((m_slots[i].hashCode) == hashCode &&
m_comparer
.Equals(m_slots[i].value, item)) {
1331
if (m_slots[i].hashCode == hashCode &&
m_comparer
.Equals(m_slots[i].value, value)) {
1526
return
m_comparer
.GetHashCode(item) & Lower31BitMask;