public override void Add(String key, String value) { _root.Settings.Add(new KeyValueConfigurationElement(key, value)); base.Add(key, value); }
protected internal override object GetRuntimeObject() { KeyValueInternalCollection col = new KeyValueInternalCollection(); foreach (string key in Settings.AllKeys) { KeyValueConfigurationElement ele = Settings[key]; col.Add(ele.Key, ele.Value); } if (!ConfigurationManager.ConfigurationSystem.SupportsUserConfig) { col.SetReadOnly(); } return(col); }