Merge pull request #4198 from vkargov/vk-prevbb
[mono.git] / mcs / class / Mono.C5 / C5 / Collections.cs
index 2fc7c55475ad43c1f79478b4301ec4f885fe5d7e..a4164e9ffcd007e55d71093f2c4027a5c2d484f1 100644 (file)
@@ -838,8 +838,9 @@ namespace C5
       }
       else
       {
-        //To avoid an O(n^2) algorithm, we make an aux hashtable to hold the count of items
-        HashDictionary<T, int> dict = new HashDictionary<T, int>();
+        // To avoid an O(n^2) algorithm, we make an aux hashtable to hold the count of items
+        // bug20101103: HashDictionary<T, int> dict = new HashDictionary<T, int>();
+        HashDictionary<T, int> dict = new HashDictionary<T, int>(itemequalityComparer);
         foreach (T item in collection2)
         {
           int count = 1;