Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2003-03-04 02:13:02 +0300
committerMiguel de Icaza <miguel@gnome.org>2003-03-04 02:13:02 +0300
commit77c3b5453bd68f52563e04835c8b656e571221e2 (patch)
tree9e4d0e91df67e0e2fb1fdc3c158d5bbdba857d04 /mcs/class/System/System.Collections.Specialized
parent0e27d1f07a0e5685bf0b18134245903265cc06bb (diff)
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. svn path=/trunk/mcs/; revision=12163
Diffstat (limited to 'mcs/class/System/System.Collections.Specialized')
-rwxr-xr-xmcs/class/System/System.Collections.Specialized/ChangeLog7
-rw-r--r--mcs/class/System/System.Collections.Specialized/NameValueCollection.cs8
2 files changed, 10 insertions, 5 deletions
diff --git a/mcs/class/System/System.Collections.Specialized/ChangeLog b/mcs/class/System/System.Collections.Specialized/ChangeLog
index 0e61ece6ad0..9a564013bd5 100755
--- a/mcs/class/System/System.Collections.Specialized/ChangeLog
+++ b/mcs/class/System/System.Collections.Specialized/ChangeLog
@@ -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.
diff --git a/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs b/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs
index cce56a3d274..b87827aff28 100644
--- a/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs
+++ b/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs
@@ -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