public void SoftCircuits() { var stream = TestData.GetUtf8Stream(); using (var reader = new SoftCircuits.CsvParser.CsvReader(stream, Encoding.UTF8)) { string[] columns = null; while (reader.ReadRow(ref columns)) { } } }
public List <T> GetRecords <T>(MemoryStream stream) where T : ICsvReadable, new() { var activate = ActivatorFactory.Create <T>(_activationMethod); var allRecords = new List <T>(); using (var reader = new SoftCircuits.CsvParser.CsvReader(stream)) { string[] columns = null; while (reader.ReadRow(ref columns)) { var record = activate(); record.Read(i => columns[i]); allRecords.Add(record); } } return(allRecords); }