save method to dictionary c# code example
Example 1: how to save a c# dictionary
var dictionary = new JavaScriptSerializer()
.Deserialize<Dictionary<string, string>>(File.ReadAllText("SomeFile.txt"));
Example 2: how to save a c# dictionary
File.WriteAllText("SomeFile.Txt", new JavaScriptSerializer().Serialize(dictionary));