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