internal static BigInteger ParseBigInteger(string value, NumberStyles style, NumberFormatInfo info)
{
if (value == null)
throw new ArgumentNullException(nameof(value));
ArgumentException e;
if (!TryValidateParseStyleInteger(style, out e))
throw e;
BigInteger result = BigInteger.Zero;
if (!TryParseBigInteger(value, style, info, out result))
{
throw new FormatException(SR.Overflow_ParseBigInteger);
}
return result;
}