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