Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2010-07-13 18:36:57 +0400
committerJb Evain <jbevain@gmail.com>2010-07-13 18:36:57 +0400
commitaa35ea37733e4185ebb40ee272c8ff66e4c639c3 (patch)
tree70bb40fcf5f8569e7d0515532fc0e567f19af1c8 /mcs/class
parent02ff6c22768c7df7acfa7673f033b0d929bc1d2c (diff)
2010-07-13 Jb Evain <jbevain@novell.com>
backport of 160298. * Enumerable.cs (Except): fix HashSet.Contains call. Fixes #621911. svn path=/branches/mono-2-6/mcs/; revision=160299
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/System.Core/System.Linq/ChangeLog7
-rw-r--r--mcs/class/System.Core/System.Linq/Enumerable.cs2
2 files changed, 8 insertions, 1 deletions
diff --git a/mcs/class/System.Core/System.Linq/ChangeLog b/mcs/class/System.Core/System.Linq/ChangeLog
index 4bf0dcaa06f..7610f3df4ab 100644
--- a/mcs/class/System.Core/System.Linq/ChangeLog
+++ b/mcs/class/System.Core/System.Linq/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-13 Jb Evain <jbevain@novell.com>
+
+ backport of 160298.
+
+ * Enumerable.cs (Except): fix HashSet.Contains call.
+ Fixes #621911.
+
2010-06-22 Jb Evain <jbevain@novell.com>
backport of r159337.
diff --git a/mcs/class/System.Core/System.Linq/Enumerable.cs b/mcs/class/System.Core/System.Linq/Enumerable.cs
index c476de7bd01..48e1df1b8a8 100644
--- a/mcs/class/System.Core/System.Linq/Enumerable.cs
+++ b/mcs/class/System.Core/System.Linq/Enumerable.cs
@@ -566,7 +566,7 @@ namespace System.Linq
{
var items = new HashSet<TSource> (second, comparer);
foreach (var element in first) {
- if (!items.Contains (element, comparer))
+ if (!items.Contains (element))
yield return element;
}
}