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

◆ TryParse() [12/13]

static bool System.UInt16.TryParse ( ReadOnlySpan< char > s,
NumberStyles style,
NumberFormatInfo info,
out ushort result )
inlinestaticprivate

Definition at line 192 of file UInt16.cs.

193 {
194 if (Number.TryParseUInt32(s, style, info, out var result2) != 0 || result2 > 65535)
195 {
196 result = 0;
197 return false;
198 }
199 result = (ushort)result2;
200 return true;
201 }

References System.info, System.s, and System.Number.TryParseUInt32().