Author: raja
Date: 2005-05-05 04:53:34 -0400 (Thu, 05 May 2005)
New Revision: 44065

Modified:
   trunk/mcs/class/corlib/Test/System.Collections.Generic/ChangeLog
   trunk/mcs/class/corlib/Test/System.Collections.Generic/DictionaryTest.cs
Log:
* DictionaryTest.cs (MyTest.GetHashCode): Add to silence a compiler warning.


Modified: trunk/mcs/class/corlib/Test/System.Collections.Generic/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.Collections.Generic/ChangeLog    
2005-05-05 06:37:24 UTC (rev 44064)
+++ trunk/mcs/class/corlib/Test/System.Collections.Generic/ChangeLog    
2005-05-05 08:53:34 UTC (rev 44065)
@@ -1,3 +1,8 @@
+2005-05-05  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       * DictionaryTest.cs (MyTest.GetHashCode): Add to silence a
+       compiler warning.
+
 2005-04-04  Raja R Harinath  <[EMAIL PROTECTED]>
 
        * DictionaryTest.cs: Update.

Modified: 
trunk/mcs/class/corlib/Test/System.Collections.Generic/DictionaryTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.Collections.Generic/DictionaryTest.cs    
2005-05-05 06:37:24 UTC (rev 44064)
+++ trunk/mcs/class/corlib/Test/System.Collections.Generic/DictionaryTest.cs    
2005-05-05 08:53:34 UTC (rev 44065)
@@ -250,10 +250,15 @@
        
                        public MyTest (string name, int number)
                        {
-                       Name = name;
-                       RollNo = number;
+                               Name = name;
+                               RollNo = number;
                        }
-       
+
+                       public override int GetHashCode ()
+                       {
+                               return Name.GetHashCode () ^ RollNo;
+                       }
+
                        public override bool Equals (object obj)
                        {
                                MyTest myt = obj as MyTest;

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

Reply via email to