public static bool TryParseLong(string s, out long i) { i = 0; try { i = long.Parse(s); return true; } catch { return false; } }