public CsvWriter(CsvEndPoint endPoint, EndPointDataCollection collection) { this.endPoint = endPoint; this.collection = collection; streamWriter = new StreamWriter(endPoint.Configuration.FilePath, false); csvWriter = new CsvHelper.CsvWriter(streamWriter, endPoint.ConvertConfiguration()); }
public CsvReader(CsvEndPoint endPoint, EndPointDataCollection collection) { this.endPoint = endPoint; this.collection = collection; streamReader = new StreamReader(endPoint.Configuration.FilePath); csvReader = new CsvHelper.CsvReader(streamReader, endPoint.ConvertConfiguration()); recordEnumerator = csvReader.GetRecords <dynamic>().GetEnumerator(); }