internal XmlConfigurationSection(XElement xElement, XmlConfigurationSection parent) : this(xElement) { _Configuration = parent._Configuration; _ParentSection = parent; Path = String.Format("{0}.{1}", _ParentSection.Path, Name); }
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); }