Answers for "c# dictionary save function"

C#
1

how to save a c# dictionary

File.WriteAllText("SomeFile.Txt", new JavaScriptSerializer().Serialize(dictionary));
Posted by: Guest on November-01-2020
1

how to save a c# dictionary

var dictionary = new JavaScriptSerializer()
    .Deserialize<Dictionary<string, string>>(File.ReadAllText("SomeFile.txt"));
Posted by: Guest on November-01-2020

C# Answers by Framework

Browse Popular Code Answers by Language