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

◆ ToString() [18/36]

static string System.Convert.ToString ( int value,
int toBase )
inlinestatic

Definition at line 2657 of file Convert.cs.

2658 {
2659 if (toBase != 2 && toBase != 8 && toBase != 10 && toBase != 16)
2660 {
2661 throw new ArgumentException(SR.Arg_InvalidBase);
2662 }
2663 return ParseNumbers.IntToString(value, toBase, -1, ' ', 0);
2664 }

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