Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ ParseBigInteger() [1/2]

static BigInteger System.Numerics.BigNumber.ParseBigInteger ( ReadOnlySpan< char > value,
NumberStyles style,
NumberFormatInfo info )
inlinestaticpackage

Definition at line 85 of file BigNumber.cs.

86 {
87 if (!TryValidateParseStyleInteger(style, out var e))
88 {
89 throw e;
90 }
91 if (!TryParseBigInteger(value, style, info, out var result))
92 {
93 throw new FormatException(System.SR.Overflow_ParseBigInteger);
94 }
95 return result;
96 }
static bool TryValidateParseStyleInteger(NumberStyles style, [NotNullWhen(false)] out ArgumentException e)
Definition BigNumber.cs:31
static bool TryParseBigInteger(string value, NumberStyles style, NumberFormatInfo info, out BigInteger result)
Definition BigNumber.cs:47
static string Overflow_ParseBigInteger
Definition SR.cs:30
Definition SR.cs:7

References System.info, System.SR.Overflow_ParseBigInteger, System.Numerics.BigNumber.TryParseBigInteger(), System.Numerics.BigNumber.TryValidateParseStyleInteger(), and System.value.