Ejemplo 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);
         }
     }
 }
Ejemplo n.º 2
0
 public static void ToCsv <T>(this IEnumerable <T> source, CsvDestination csvDestination)
 {
     source.ToCsv(csvDestination, null);
 }