public static int ParseInt(string s) { int result; if (!TryParseInt(s, out result)) { throw new FormatException(); } return result; }