{
internal class KeyValueInternalCollection: NameValueCollection
{
- KeyValueConfigurationCollection col;
-
- public KeyValueInternalCollection ()
- {
- col = new KeyValueConfigurationCollection ();
- }
-
-
public void SetReadOnly ()
{
- col.SetReadOnly ();
+ base.IsReadOnly = true;
}
public override void Add (string name, string val)
{
- col.Add (new KeyValueConfigurationElement (name, val));
- }
-
- public override void Remove (string name)
- {
- col.Remove (name);
- }
-
- public override string[] AllKeys
- {
- get {
- return col.AllKeys;
- }
- }
-
- public override string Get (string name)
- {
- KeyValueConfigurationElement ele = col[name];
- if (ele != null)
- return ele.Value;
-
- return null;
+ Remove (name);
+ base.Add (name, val);
}
/*