public Transaction ParseFromLine(string line) { try { List <string> unparsed; Transaction iTransaction = new Transaction(); ParseTools.GetParsed <Transaction>(iTransaction, _header, line, _separator, out unparsed); string[] valueItems = line.SplitAndTrim(_separator); string dateValue = valueItems[_transactionDateIndex]; int dateValueInt; if (int.TryParse(dateValue, out dateValueInt)) { iTransaction.TransactionDate = ExcelTools.FromExcelSerialDate(dateValueInt); } return(iTransaction); } catch (Exception) { } return(null); }