Fix typo
[mono.git] / mcs / class / System / System.Net.Configuration / ConnectionManagementElementCollection.cs
index 6bb6126449eb4ed9f3ab88bd4b1a5c2ea9310c69..66c34c1b16973dda44a1fa37349aa05fb679b5aa 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)
 //
 
 //
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0 && CONFIGURATION_DEP
+#if CONFIGURATION_DEP
 
 using System.Configuration;
 
 namespace System.Net.Configuration 
 {
+       [ConfigurationCollection (typeof (ConnectionManagementElement), CollectionType = ConfigurationElementCollectionType.AddRemoveClearMap)]
        public sealed class ConnectionManagementElementCollection : ConfigurationElementCollection
        {
                #region Constructors
 
-               [MonoTODO]
                public ConnectionManagementElementCollection ()
                {
                }
@@ -63,30 +64,27 @@ namespace System.Net.Configuration
 
                #region Methods
 
-               [MonoTODO]
                public void Add (ConnectionManagementElement element)
                {
                        BaseAdd (element);
                }
 
-               [MonoTODO]
                public void Clear ()
                {
                        BaseClear ();
                }
 
-               [MonoTODO]
                protected override ConfigurationElement CreateNewElement ()
                {
-                       return new AuthenticationModuleElement ();
+                       return new ConnectionManagementElement ();
                }
 
-               [MonoTODO]
                protected override object GetElementKey (ConfigurationElement element)
                {
                        if (!(element is ConnectionManagementElement))
                                throw new ArgumentException ("element");
-                       throw new NotImplementedException ();
+
+                       return ((ConnectionManagementElement)element).Address;
                }
 
                public int IndexOf (ConnectionManagementElement element)