Merge pull request #1404 from woodsb02/mono-route
[mono.git] / mcs / class / System.Web / System.Web.Configuration_2.0 / HttpModuleActionCollection.cs
index 92cfa809e3a4e155b0bb1a60cb266ca44192b4ac..7d314ac73c35366662f74559230c833e35663256 100644 (file)
@@ -28,7 +28,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System;
 using System.Configuration;
@@ -38,11 +37,17 @@ namespace System.Web.Configuration
        [ConfigurationCollection (typeof (HttpModuleAction), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
        public sealed class HttpModuleActionCollection : ConfigurationElementCollection
        {
+               static ConfigurationPropertyCollection properties;
+
+               static HttpModuleActionCollection ()
+               {
+                       properties = new ConfigurationPropertyCollection ();
+               }
+
                public HttpModuleActionCollection ()
                {
                }
                        
-               [MonoTODO]
                public void Add (HttpModuleAction httpModuleAction)
                {
                        BaseAdd (httpModuleAction);
@@ -53,10 +58,9 @@ namespace System.Web.Configuration
                        BaseClear ();
                }
 
-               [MonoTODO]
                protected override ConfigurationElement CreateNewElement ()
                {
-                       return new HttpModuleAction("", "");
+                       return new HttpModuleAction ();
                }
 
                protected override object GetElementKey (ConfigurationElement element)
@@ -84,17 +88,13 @@ namespace System.Web.Configuration
                        BaseRemoveAt (index);
                }
 
-               [MonoTODO]
                protected override bool IsElementRemovable (ConfigurationElement element)
                {
                        return base.IsElementRemovable (element);
                }
 
-               [MonoTODO]
-               protected override ConfigurationPropertyCollection Properties {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+               protected internal override ConfigurationPropertyCollection Properties {
+                       get { return properties; }
                }
 
                public HttpModuleAction this[int index] {
@@ -104,4 +104,3 @@ namespace System.Web.Configuration
        }
 }
 
-#endif