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

◆ ToChar() [15/18]

static char System.Convert.ToChar ( string value,
IFormatProvider? provider )
inlinestatic

Definition at line 711 of file Convert.cs.

712 {
713 if (value == null)
714 {
715 throw new ArgumentNullException("value");
716 }
717 if (value.Length != 1)
718 {
719 throw new FormatException(SR.Format_NeedSingleChar);
720 }
721 return value[0];
722 }

References System.SR.Format_NeedSingleChar, and System.value.