diff options
author | Jb Evain <jbevain@gmail.com> | 2010-07-13 18:36:57 +0400 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2010-07-13 18:36:57 +0400 |
commit | aa35ea37733e4185ebb40ee272c8ff66e4c639c3 (patch) | |
tree | 70bb40fcf5f8569e7d0515532fc0e567f19af1c8 /mcs/class | |
parent | 02ff6c22768c7df7acfa7673f033b0d929bc1d2c (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/ChangeLog | 7 | ||||
-rw-r--r-- | mcs/class/System.Core/System.Linq/Enumerable.cs | 2 |
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; } } |