/// </summary>
private static int GetNewTableSize(int minSize)
{
- if ((uint)minSize > Array.MaxArrayLength)
+ if ((uint)minSize > Array_ReferenceSources.MaxArrayLength)
{
// Intentionally return a value that will result in an OutOfMemoryException
return int.MaxValue;
newSize++;
// Don't set newSize to more than Array.MaxArrayLength
- if ((uint)newSize > Array.MaxArrayLength)
+ if ((uint)newSize > Array_ReferenceSources.MaxArrayLength)
{
- newSize = Array.MaxArrayLength;
+ newSize = Array_ReferenceSources.MaxArrayLength;
}
return newSize;