Exemplo n.º 1
0
        //[Benchmark]
        public List <AllNumbersTestClass> CsvReader_AllNumbers_MapDynamicIL()
        {
            var reader = CsvReader <AllNumbersTestClass> .CreateFromString(Data, allNumbersMapper);

            var list = new List <AllNumbersTestClass>();

            while (reader.Read())
            {
                var record = reader.GetRecord();
                list.Add(record);
            }

            return(list);
        }
Exemplo n.º 2
0
        //[Benchmark]
        public List <HalfNumbers> CsvReader_MapDynamicIL()
        {
            var reader = CsvReader <HalfNumbers> .CreateFromString(Data, mapping);

            var list = new List <HalfNumbers>();

            while (reader.Read())
            {
                var record = reader.GetRecord();
                list.Add(record);
            }

            return(list);
        }