35 references to HashHelpers
mscorlib (35)
system\Collections\Concurrent\ConcurrentDictionary.cs (4)
893
if(collisionCount >
HashHelpers
.HashCollisionThreshold &&
HashHelpers
.IsWellKnownEqualityComparer(comparer))
938
GrowTable(tables, (IEqualityComparer<TKey>)
HashHelpers
.GetRandomizedEqualityComparer(comparer), true, m_keyRehashCount);
2202
m_comparer = (IEqualityComparer<TKey>)
HashHelpers
.GetEqualityComparerForSerialization(tables.m_comparer);
system\collections\generic\dictionary.cs (9)
122
HashHelpers
.SerializationInfoTable.Add(this, info);
284
info.AddValue(ComparerName,
HashHelpers
.GetEqualityComparerForSerialization(comparer), typeof(IEqualityComparer<TKey>));
312
int size =
HashHelpers
.GetPrime(capacity);
384
if(collisionCount >
HashHelpers
.HashCollisionThreshold &&
HashHelpers
.IsWellKnownEqualityComparer(comparer))
386
comparer = (IEqualityComparer<TKey>)
HashHelpers
.GetRandomizedEqualityComparer(comparer);
397
HashHelpers
.SerializationInfoTable.TryGetValue(this, out siInfo);
436
HashHelpers
.SerializationInfoTable.Remove(this);
440
Resize(
HashHelpers
.ExpandPrime(count), false);
system\collections\generic\equalitycomparer.cs (2)
501
_entropy =
HashHelpers
.GetEntropy();
568
_entropy =
HashHelpers
.GetEntropy();
system\collections\hashtable.cs (15)
287
int hashsize = (rawsize > InitialSize) ?
HashHelpers
.GetPrime((int)rawsize) : InitialSize;
399
HashHelpers
.SerializationInfoTable.Add(this, info);
719
int rawsize =
HashHelpers
.ExpandPrime(buckets.Length);
937
if(ntry >
HashHelpers
.HashCollisionThreshold &&
HashHelpers
.IsWellKnownEqualityComparer(_keycomparer))
943
_keycomparer =
HashHelpers
.GetRandomizedEqualityComparer(_keycomparer);
974
if(ntry >
HashHelpers
.HashCollisionThreshold &&
HashHelpers
.IsWellKnownEqualityComparer(_keycomparer))
980
_keycomparer =
HashHelpers
.GetRandomizedEqualityComparer(_keycomparer);
1023
if(buckets.Length >
HashHelpers
.HashCollisionThreshold &&
HashHelpers
.IsWellKnownEqualityComparer(_keycomparer))
1029
_keycomparer =
HashHelpers
.GetRandomizedEqualityComparer(_keycomparer);
1173
IEqualityComparer keyComparerForSerilization = (IEqualityComparer)
HashHelpers
.GetEqualityComparerForSerialization(_keycomparer);
1217
HashHelpers
.SerializationInfoTable.TryGetValue(this, out siInfo);
1292
HashHelpers
.SerializationInfoTable.Remove(this);
system\rttype.cs (1)
5983
size =
HashHelpers
.GetPrime(size);
system\runtime\compilerservices\ConditionalWeakTable.cs (1)
507
newSize = System.Collections.
HashHelpers
.GetPrime(_buckets.Length == 0 ? _initialCapacity + 1 : _buckets.Length * 2);
system\string.cs (1)
836
if(
HashHelpers
.s_UseRandomizedStringHashing)
system\stringcomparer.cs (2)
258
_entropy =
HashHelpers
.GetEntropy();
401
_entropy =
HashHelpers
.GetEntropy();