private int? ParseInt(string token) { int result; if (token==null || !Int32.TryParse(token, out result)) return null; return result; } }