public static bool CheckInt(string value) { int result; if (int.TryParse(value, out result)) { return true; } return false; }