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