6 references to GetPrime
mscorlib (6)
system\collections\generic\dictionary.cs (1)
312int size = HashHelpers.GetPrime(capacity);
system\collections\hashtable.cs (3)
287int hashsize = (rawsize > InitialSize) ? HashHelpers.GetPrime((int)rawsize) : InitialSize; 1753Contract.Assert( MaxPrimeArrayLength == GetPrime(MaxPrimeArrayLength), "Invalid MaxPrimeArrayLength"); 1757return GetPrime(newSize);
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);