/// <summary> /// Path to file /// </summary> /// <param name="filepath">path to file</param> /// <returns></returns> public static XML_Dictionary Load(string filepath) { var xml = File.ReadAllText(filepath); var xmlDic = new XML_Dictionary(xml); return(xmlDic); }
/// <summary> /// String content /// </summary> /// <param name="xml">Xml content</param> /// <returns></returns> public static XML_Dictionary LoadXML(string xml) { var xmlDic = new XML_Dictionary(xml); return(xmlDic); }
/// <summary> /// Load from dictionary /// </summary> /// <param name="dic">Dictionary content</param> /// <returns></returns> public static XML_Dictionary LoadDictionary(Dictionary <string, string> dic) { var xmlDic = new XML_Dictionary(dic); return(xmlDic); }