public static int? ParseInt(this string source) { int result; if (Int32.TryParse(source, out result)) { return result; } return null; }