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

◆ TryParse() [12/13]

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

Definition at line 166 of file Byte.cs.

167 {
168 if (Number.TryParseUInt32(s, style, info, out var result2) != 0 || result2 > 255)
169 {
170 result = 0;
171 return false;
172 }
173 result = (byte)result2;
174 return true;
175 }

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