diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2002-02-08 16:11:39 +0300 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2002-02-08 16:11:39 +0300 |
commit | 93416474bd1e63f8c0fe1934262ae729abd7c0f9 (patch) | |
tree | 6dbca5b5b03859b659e1d2a17e3c695acaa9c154 /mcs/class/System/System.Collections.Specialized | |
parent | 74b8f5fe2b1d20d440b5485be7e396b3e5bf3806 (diff) |
Fri Feb 8 18:02:50 CET 2002 Paolo Molaro <lupus@ximian.com>
* NameObjectCollectionBase.cs, NameValueCollection.cs: tweaks to make
it compile and provide the constructor needed by nunitcore.
svn path=/trunk/mcs/; revision=2267
Diffstat (limited to 'mcs/class/System/System.Collections.Specialized')
3 files changed, 16 insertions, 2 deletions
diff --git a/mcs/class/System/System.Collections.Specialized/ChangeLog b/mcs/class/System/System.Collections.Specialized/ChangeLog index 39304c0dcf1..e582af13fa2 100755 --- a/mcs/class/System/System.Collections.Specialized/ChangeLog +++ b/mcs/class/System/System.Collections.Specialized/ChangeLog @@ -1,3 +1,9 @@ + +Fri Feb 8 18:02:50 CET 2002 Paolo Molaro <lupus@ximian.com> + + * NameObjectCollectionBase.cs, NameValueCollection.cs: tweaks to make + it compile and provide the constructor needed by nunitcore. + 2002-01-05 Ravi Pratap <ravi@ximian.com> * BitVector32.cs, ListDictionary.cs : MonoTODO everywhere! diff --git a/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs b/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs index 4804657860b..8a70ae7392d 100644 --- a/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs +++ b/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs @@ -23,6 +23,14 @@ namespace System.Collections.Specialized private int m_defCapacity;
private bool m_readonly;
+ internal protected IComparer Comparer {
+ get {return m_comparer;}
+ }
+
+ internal protected IHashCodeProvider HashCodeProvider {
+ get {return m_hashprovider;}
+ }
+
internal protected /*?*/ class _Item
{
public string key;
diff --git a/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs b/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs index 23c8a5b62f8..1b288b2d06d 100644 --- a/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs +++ b/mcs/class/System/System.Collections.Specialized/NameValueCollection.cs @@ -42,13 +42,13 @@ namespace System.Collections.Specialized{ /// TODO: uncomment constructor below after it will be possible to compile NameValueCollection and /// NameObjectCollectionBase to the same assembly -/* public NameValueCollection( NameValueCollection col ) : base(col.HashCodeProvider,col.Comparer) + public NameValueCollection( NameValueCollection col ) : base(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 empty, ///has the default initial capacity and uses the specified hash code provider and ///the specified comparer.</summary> |