コード例 #1
0
 internal XmlConfigurationSection(XElement xElement, XmlConfigurationSection parent)
     : this(xElement)
 {
     _Configuration = parent._Configuration;
     _ParentSection = parent;
     Path           = String.Format("{0}.{1}", _ParentSection.Path, Name);
 }
コード例 #2
0
 private IConfiguration InternalLoad(string configurationName)
 {
     try
     {
         ConfigurationName = configurationName;
         _Document         = LoadWithoutCheckingCharacters(configurationName);
     }
     catch (IOException)
     {
         NewConfigurationFile();
     }
     catch (XmlException)
     {
         NewConfigurationFile();
     }
     RootSection          = new XmlConfigurationSection(_Document.Root, this);
     RootSection.Changed += RootSection_Changed;
     return(this);
 }