Esempio n. 1
0
 public static void ToCsv <T>(this IEnumerable <T> source, CsvDestination csvDestination, CsvDefinition csvDefinition)
 {
     using (var csvFile = new CsvFile <T>(csvDestination, csvDefinition))
     {
         foreach (var record in source)
         {
             csvFile.Append(record);
         }
     }
 }
Esempio n. 2
0
 public static void ToCsv <T>(this IEnumerable <T> source, CsvDestination csvDestination)
 {
     source.ToCsv(csvDestination, null);
 }