2003-03-03 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Mon, 3 Mar 2003 23:13:02 +0000 (23:13 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 3 Mar 2003 23:13:02 +0000 (23:13 -0000)
* NameValueCollection.cs: Uncoment constructor, an old MCS bug
prevented this from working.  Removed test for nullitude of col,
as it would have aborted anyways on the dereference in the base
constructor call.

svn path=/trunk/mcs/; revision=12163

mcs/class/System/System.Collections.Specialized/ChangeLog
mcs/class/System/System.Collections.Specialized/NameValueCollection.cs

index 0e61ece6ad0f2ee0abce5d4cfaff9ae6ad51447a..9a564013bd550ca195dc5e4589117563c35d57f4 100755 (executable)
@@ -1,3 +1,10 @@
+2003-03-03  Miguel de Icaza  <miguel@ximian.com>
+
+       * NameValueCollection.cs: Uncoment constructor, an old MCS bug
+       prevented this from working.  Removed test for nullitude of col,
+       as it would have aborted anyways on the dereference in the base
+       constructor call. 
+
 2003-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * StringCollection.cs: fixed range checks in CopyTo.
index cce56a3d27473641a1ad854b134fc5f33af48b7e..b87827aff286f98940142f17f8d0e33578aaccd3 100644 (file)
@@ -68,14 +68,12 @@ namespace System.Collections.Specialized{
                /// TODO: uncomment constructor below after it will be possible to compile NameValueCollection and
                /// NameObjectCollectionBase to the same assembly 
                
-/*             public NameValueCollection( int capacity, NameValueCollection col )
-                       : base(capacity, col.get_HashCodeProvider(),col.Comparer)
+               public NameValueCollection( int capacity, NameValueCollection col )
+                       : base(capacity, col.HashCodeProvider, col.Comparer)
                {
-                       if (col==null)
-                               throw new ArgumentNullException("Null argument is not allowed");
                        Add(col);                       
                }
-*/             
+
                /// <summary>
                /// SDK: Initializes a new instance of the NameValueCollection class that is serializable
                /// and uses the specified System.Runtime.Serialization.SerializationInfo and