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