示例#1
0
        //[Benchmark]
        public void FlatFilesCsv()
        {
            var tr   = TestData.GetTextReader();
            var opts = new FlatFiles.SeparatedValueOptions()
            {
                IsFirstRecordSchema = true
            };
            var dr = new FlatFiles.FlatFileDataReader(new FlatFiles.SeparatedValueReader(tr, opts));

            while (dr.Read())
            {
                for (int i = 0; i < dr.FieldCount; i++)
                {
                    var s = dr.GetValue(i);
                }
            }
        }