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

◆ TryParse() [12/13]

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

Definition at line 195 of file SByte.cs.

196 {
197 if (Number.TryParseInt32(s, style, info, out var result2) != 0 || (uint)(result2 - -128 - ((int)(style & NumberStyles.AllowHexSpecifier) >> 2)) > 255u)
198 {
199 result = 0;
200 return false;
201 }
202 result = (sbyte)result2;
203 return true;
204 }

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