public KeyValuePairConfigurationElement this[String Key] { get { KeyValuePairConfigurationElement kvpce = new KeyValuePairConfigurationElement (); kvpce.Key = this [Key].Key; kvpce.Value = this [Key].Value; return kvpce; } }
public void Add(KeyValuePairConfigurationElement element) { KeyValuePairConfigurationElement ele = (KeyValuePairConfigurationElement)element; if(ContainsKey(ele.Key)) { this[ele.Key].Value = ele.Value; } else base.Add(ele.Key,ele.Value); }