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

◆ TryParse() [6/12]

static bool System.Int32.TryParse ( [NotNullWhen(true)] string? s,
out int result )
inlinestatic

Definition at line 163 of file Int32.cs.

164 {
165 if (s == null)
166 {
167 result = 0;
168 return false;
169 }
170 return Number.TryParseInt32IntegerStyle(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result) == Number.ParsingStatus.OK;
171 }

References System.Globalization.NumberFormatInfo.CurrentInfo, System.s, and System.Number.TryParseInt32IntegerStyle().

Referenced by System.Int32.TryParse(), System.Int32.TryParse(), System.Int32.TryParse(), and System.Int32.TryParse().