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

◆ Parse() [5/9]

static char System.Char.Parse ( string s)
inlinestatic

Definition at line 154 of file Char.cs.

155 {
156 if (s == null)
157 {
158 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
159 }
160 if (s.Length != 1)
161 {
162 throw new FormatException(SR.Format_NeedSingleChar);
163 }
164 return s[0];
165 }

References System.SR.Format_NeedSingleChar, System.s, and System.ThrowHelper.ThrowArgumentNullException().

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