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
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2009-03-29 00:55:24 +0300
committerJb Evain <jbevain@gmail.com>2009-03-29 00:55:24 +0300
commitcc2c56a916645e45991c43f86409966218a6a177 (patch)
treec479412d37d2bfc53919039e4684d98fd553a2ad /mcs/class/System.Core/System.Linq/Enumerable.cs
parent31192936a0331519ce98e55c2a8097c51a58c6f6 (diff)
2009-03-28 Jb Evain <jbevain@novell.com>
* Enumerable.cs: fix Intersect. svn path=/trunk/mcs/; revision=130478
Diffstat (limited to 'mcs/class/System.Core/System.Linq/Enumerable.cs')
-rw-r--r--mcs/class/System.Core/System.Linq/Enumerable.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Core/System.Linq/Enumerable.cs b/mcs/class/System.Core/System.Linq/Enumerable.cs
index e2c6912c244..d2c98d0a195 100644
--- a/mcs/class/System.Core/System.Linq/Enumerable.cs
+++ b/mcs/class/System.Core/System.Linq/Enumerable.cs
@@ -854,7 +854,7 @@ namespace System.Linq
{
var items = new HashSet<TSource> (second, comparer);
foreach (TSource element in first) {
- if (items.Contains (element))
+ if (items.Remove (element))
yield return element;
}
}