aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Procedures/Dialogs/SaveFileDialogView.xaml.cs
blob: d365bcb66bf4736d391fa5638dbcd82ceee81581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
generated by cgit v1.3.1 (git 2.54.0) at 2026-07-27 04:42:47 +0000
 


    /// <summary>
    /// Export the collection to CSV file.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <param name="source">The source.</param>
    /// <param name="csvDestination">The CSV destination.</param>
    /// <param name="csvDefinition">The CSV definition.</param>
    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);
            }
        }
    }
}