コード例 #1
0
        private void ExportWhiteListToCsv()
        {
            var list         = Whitelist.Cast <object>().ToList();
            var exportAction = new CsvImportAndExport();

            exportAction.CsvExport <WhitelistMap>(list, "Whitelist.csv");
        }
コード例 #2
0
 private async Task SaveWhiteListToCsv()
 {
     var list     = Whitelist.Cast <object>().ToList();
     var writeCsv = new ReadAndWriteCsv("Whitelist.csv");
     await Task.Run(() => writeCsv.WriteRecordsToCsv <WhitelistMap>(list));
 }