location,location,location. Fixes all the tests I broke last night
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / TagMapCollection.cs
index f5f468b4c8b24ac1dee5f0426af7b579a5c8d2e4..c2c01ce0745919c3b372940a59bc9613f04803ce 100644 (file)
@@ -62,7 +62,7 @@ namespace System.Web.Configuration
 
                protected override ConfigurationElement CreateNewElement ()
                {
-                       return new TagMapInfo ("", "");
+                       return new TagMapInfo ();
                }
 
                protected override object GetElementKey (ConfigurationElement element)
@@ -72,7 +72,7 @@ namespace System.Web.Configuration
 
                public void Remove (TagMapInfo tagMapInformation)
                {
-                       BaseRemove (tagMapInformation);
+                       BaseRemove (tagMapInformation.TagType);
                }
 
                protected override ConfigurationPropertyCollection Properties {
@@ -80,10 +80,8 @@ namespace System.Web.Configuration
                }
 
                public TagMapInfo this[int index] {
-                       get { return (TagMapInfo) BaseGet (index);
-                       }
-                       [MonoTODO]
-                       set { throw new NotImplementedException (); }
+                       get { return (TagMapInfo) BaseGet (index); }
+                       set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
                }
        }
 }