Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ParseDecimal()

static decimal System.Number.ParseDecimal ( ReadOnlySpan< char > value,
NumberStyles styles,
NumberFormatInfo info )
inlinestaticpackage

Definition at line 5502 of file Number.cs.

5503 {
5504 decimal result;
5505 ParsingStatus parsingStatus = TryParseDecimal(value, styles, info, out result);
5506 if (parsingStatus != 0)
5507 {
5508 ThrowOverflowOrFormatException(parsingStatus, TypeCode.Decimal);
5509 }
5510 return result;
5511 }
static void ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type=TypeCode.Empty)
Definition Number.cs:5918
static unsafe ParsingStatus TryParseDecimal(ReadOnlySpan< char > value, NumberStyles styles, NumberFormatInfo info, out decimal result)
Definition Number.cs:5640

References System.info, System.Number.ThrowOverflowOrFormatException(), System.Number.TryParseDecimal(), and System.value.

Referenced by System.Decimal.Parse(), System.Decimal.Parse(), System.Decimal.Parse(), System.Decimal.Parse(), and System.Decimal.Parse().