Пример #1
0
        public void WriteWithMapping(bool useDictionaryMapping = false)
        {
            var csvHelper = new CsvHelpers(Context.FileSystem, Context.Environment);

            if (useDictionaryMapping)
            {
                csvHelper.WriteRecords(ResultPath, People, DictionaryMap, Settings);
            }
            else
            {
                csvHelper.WriteRecords(ResultPath, People, ClassMap, Settings);
            }
        }
Пример #2
0
        public void WriteNoMapping()
        {
            var csvHelper = new CsvHelpers(Context.FileSystem, Context.Environment);

            csvHelper.WriteRecords(ResultPath, People, Settings);
        }