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

◆ ToInt64() [16/19]

static long System.Convert.ToInt64 ( string? value,
int fromBase )
inlinestatic

Definition at line 2612 of file Convert.cs.

2613 {
2614 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2615 {
2616 throw new ArgumentException(SR.Arg_InvalidBase);
2617 }
2618 if (value == null)
2619 {
2620 return 0L;
2621 }
2622 return ParseNumbers.StringToLong(value.AsSpan(), fromBase, 4096);
2623 }

References System.SR.Arg_InvalidBase, System.L, System.ParseNumbers.StringToLong(), and System.value.