예제 #1
0
        private static void PrintCSVToScreen(List <Item> list)
        {
            CSVWriterModule <Item> csv = new CSVWriterModule <Item>();

            csv.Context = Console.Out;
            csv.Write(list);
            Console.Out.WriteLine();
        }
예제 #2
0
 private static void WriteCSVToFile(List <Item> list)
 {
     using (TextWriter w = File.CreateText(CSVFile))
     {
         CSVWriterModule <Item> csv = new CSVWriterModule <Item>();
         csv.Context = w;
         csv.Write(list);
     }
 }