コード例 #1
0
            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());
            }
コード例 #2
0
            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();
            }