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); } }
public void WriteNoMapping() { var csvHelper = new CsvHelpers(Context.FileSystem, Context.Environment); csvHelper.WriteRecords(ResultPath, People, Settings); }