Answers for "how to save a dictionary as a csv file in c#"

C#
0

how to save a dictionary as a csv file in c#

String csv = String.Join(
    Environment.NewLine,
    data.Select(d => $"{d.Key};{d.Value};")
);
System.IO.File.WriteAllText(pathToCsv, csv);
Posted by: Guest on October-09-2020

Code answers related to "how to save a dictionary as a csv file in c#"

C# Answers by Framework

Browse Popular Code Answers by Language