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); }
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; }