Beispiel #1
0
        public static Dictionary <string, string> dnr(string path)
        {
            var json = Filer.readAllText(path);

            //Dictionary<string, string> rv = JsonConvert.SerializeObject()
            return(Newtonsoft.Json.JsonConvert.DeserializeObject <Dictionary <string, string> >(json));
        }
Beispiel #2
0
        // you have to use the same stretch of text
        // and if you want something else, just make a new class
        public XMLParty(string targetPath)
        {
            string s = Filer.readAllText(targetPath);

            XML = s;
            doc = new XmlDocument();
            doc.LoadXml(XML);
        }