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