Fixes build
[mono.git] / mcs / class / System / System.Net.Configuration / ConnectionManagementSection.cs
index 9d35a3434603a574de269aa7685dbaf376dd9e30..3f27c51dfed4c679f0c186f5eaab298eb7e4d5e1 100644 (file)
@@ -3,9 +3,10 @@
 //
 // Authors:
 //     Tim Coleman (tim@timcoleman.com)
+//     Chris Toshok (toshok@ximian.com)
 //
 // Copyright (C) Tim Coleman, 2004
-// (c) 2004 Novell, Inc. (http://www.novell.com)
+// (C) 2004,2005 Novell, Inc. (http://www.novell.com)
 //
 
 //
@@ -39,25 +40,33 @@ namespace System.Net.Configuration
        {
                #region Fields
 
-               ConfigurationPropertyCollection properties;
-               static ConfigurationProperty connectionManagement = new ConfigurationProperty ("ConnectionManagement", typeof (ConnectionManagementElementCollection), new ConnectionManagementElementCollection ());
+               static ConfigurationProperty connectionManagementProp;
+               static ConfigurationPropertyCollection properties;
 
                #endregion // Fields
 
                #region Constructors
 
-               public ConnectionManagementSection ()
+               static ConnectionManagementSection ()
                {
+                       connectionManagementProp = new ConfigurationProperty ("ConnectionManagement", typeof (ConnectionManagementElementCollection),
+                                                                             null, ConfigurationPropertyOptions.IsDefaultCollection);
+
                        properties = new ConfigurationPropertyCollection ();
-                       properties.Add (connectionManagement);
+                       properties.Add (connectionManagementProp);
+               }
+
+               public ConnectionManagementSection ()
+               {
                }
 
                #endregion // Constructors
 
                #region Properties
 
+               [ConfigurationProperty ("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
                public ConnectionManagementElementCollection ConnectionManagement {
-                       get { return (ConnectionManagementElementCollection) base [connectionManagement]; }
+                       get { return (ConnectionManagementElementCollection) base [connectionManagementProp]; }
                }
 
                protected override ConfigurationPropertyCollection Properties {
@@ -65,16 +74,6 @@ namespace System.Net.Configuration
                }
 
                #endregion // Properties
-
-               #region Methods
-
-               [MonoTODO]
-               protected override object GetRuntimeObject ()
-               {
-                       throw new NotImplementedException ();
-               }
-
-               #endregion // Methods
        }
 }