示例#1
0
 internal static string AddRoot(this XmlConfig config, string xPath)
 {
     if (xPath.StartsWith("/"))
     {
         xPath = "/" + config.xDoc.Root.Name.LocalName + xPath;
     }
     else
     {
         xPath = "/" + config.xDoc.Root.Name.LocalName + "/" + xPath;
     }
     return(xPath);
 }
示例#2
0
 /// <summary>
 /// Get a config manager class with the provided configbase.
 /// </summary>
 /// <param name="xmlconfig"></param>
 public ConfigManager(XmlConfig xmlconfig)
 {
     config = xmlconfig;
 }