Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jbevain committed Jul 13, 2010
1 parent 02ff6c2 commit aa35ea3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions 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.
Expand Down
2 changes: 1 addition & 1 deletion mcs/class/System.Core/System.Linq/Enumerable.cs
Expand Up @@ -566,7 +566,7 @@ static IEnumerable<TSource> CreateExceptIterator<TSource> (IEnumerable<TSource>
{
var items = new HashSet<TSource> (second, comparer);
foreach (var element in first) {
if (!items.Contains (element, comparer))
if (!items.Contains (element))
yield return element;
}
}
Expand Down

0 comments on commit aa35ea3

Please sign in to comment.