public static bool IsNumeric(this string value) { int outValue; bool isValid = int.TryParse(value, out outValue); return isValid; }