Merge pull request #439 from mono-soc-2012/garyb/iconfix
[mono.git] / mcs / class / System.Core / System.Collections.Generic / HashSet.cs
index 39047dcd35804ffcc0443e90c7c3f49f7e7a9337..a417557d035886e547a32e820076df09524c0111 100644 (file)
@@ -438,7 +438,7 @@ namespace System.Collections.Generic {
                {
                        var set = enumerable as HashSet<T>;
                        if (set == null || !Comparer.Equals (set.Comparer))
-                               set = new HashSet<T> (enumerable);
+                               set = new HashSet<T> (enumerable, Comparer);
 
                        return set;
                }