AcTools.Utils.Helpers.FlexibleParser.ParseInt C# (CSharp) Method

ParseInt() public static method

Throws an exception if can’t parse!
public static ParseInt ( string s ) : int
s string
return int
        public static int ParseInt(string s) {
            int result;
            if (!TryParseInt(s, out result)) {
                throw new FormatException();
            }

            return result;
        }

Same methods

FlexibleParser::ParseInt ( string s, int defaultValue ) : int