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