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

◆ ToUInt32() [16/19]

static uint System.Convert.ToUInt32 ( string? value,
int fromBase )
inlinestatic

Definition at line 2599 of file Convert.cs.

2600 {
2601 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2602 {
2603 throw new ArgumentException(SR.Arg_InvalidBase);
2604 }
2605 if (value == null)
2606 {
2607 return 0u;
2608 }
2609 return (uint)ParseNumbers.StringToInt(value.AsSpan(), fromBase, 4608);
2610 }

References System.SR.Arg_InvalidBase, System.ParseNumbers.StringToInt(), and System.value.