Author: gonzalo
Date: 2005-05-08 19:07:07 -0400 (Sun, 08 May 2005)
New Revision: 44225

Modified:
   trunk/mcs/class/System/System.Collections.Specialized/ChangeLog
   
trunk/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs
Log:
2005-05-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * NameObjectCollectionBase.cs: after 1.0, this uses DefaultInvariant for
        the hash code provider and comparer, as Ben said.



Modified: trunk/mcs/class/System/System.Collections.Specialized/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Collections.Specialized/ChangeLog     
2005-05-08 19:55:48 UTC (rev 44224)
+++ trunk/mcs/class/System/System.Collections.Specialized/ChangeLog     
2005-05-08 23:07:07 UTC (rev 44225)
@@ -1,3 +1,8 @@
+2005-05-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * NameObjectCollectionBase.cs: after 1.0, this uses DefaultInvariant for
+       the hash code provider and comparer, as Ben said.
+
 2005-05-05  Lluis Sanchez Gual <[EMAIL PROTECTED]>
 
        * OrderedDictionary.cs: Don't crash when removing an item

Modified: 
trunk/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs
===================================================================
--- 
trunk/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs
   2005-05-08 19:55:48 UTC (rev 44224)
+++ 
trunk/mcs/class/System/System.Collections.Specialized/NameObjectCollectionBase.cs
   2005-05-08 23:07:07 UTC (rev 44225)
@@ -184,9 +184,14 @@
                protected NameObjectCollectionBase():base()
                {
                        m_readonly = false;
-                       
+
+#if NET_1_0
                        m_hashprovider = 
CaseInsensitiveHashCodeProvider.Default;
                        m_comparer = CaseInsensitiveComparer.Default;
+#else
+                       m_hashprovider = 
CaseInsensitiveHashCodeProvider.DefaultInvariant;
+                       m_comparer = CaseInsensitiveComparer.DefaultInvariant;
+#endif
                        m_defCapacity = 0;
                        Init();
                        /*m_ItemsContainer = new 
Hashtable(m_hashprovider,m_comparer);
@@ -199,8 +204,13 @@
                {
                        m_readonly = false;
                        
+#if NET_1_0
                        m_hashprovider = 
CaseInsensitiveHashCodeProvider.Default;
                        m_comparer = CaseInsensitiveComparer.Default;
+#else
+                       m_hashprovider = 
CaseInsensitiveHashCodeProvider.DefaultInvariant;
+                       m_comparer = CaseInsensitiveComparer.DefaultInvariant;
+#endif
                        m_defCapacity = capacity;
                        Init();
                        /*m_ItemsContainer = new Hashtable(m_defCapacity, 
m_hashprovider,m_comparer);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to