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