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:
authorRoei Erez <roeie@mono-cvs.ximian.com>2008-05-20 14:30:25 +0400
committerRoei Erez <roeie@mono-cvs.ximian.com>2008-05-20 14:30:25 +0400
commitd1012d11823782137fee9335058dcd3995d9156a (patch)
tree97d96dbaec0aefd0d18b6b2fc986206721f5a753 /mcs/class/System.Core/System.Linq/Lookup.cs
parent5ee77009f94b21a96dbae616b2f1ffe17fcb8e29 (diff)
Implement the Lookup.ApplyResultSelector method
svn path=/trunk/mcs/; revision=103563
Diffstat (limited to 'mcs/class/System.Core/System.Linq/Lookup.cs')
-rw-r--r--mcs/class/System.Core/System.Linq/Lookup.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/System.Core/System.Linq/Lookup.cs b/mcs/class/System.Core/System.Linq/Lookup.cs
index d5f5d450103..ba78330ef2f 100644
--- a/mcs/class/System.Core/System.Linq/Lookup.cs
+++ b/mcs/class/System.Core/System.Linq/Lookup.cs
@@ -47,7 +47,8 @@ namespace System.Linq {
public IEnumerable<TResult> ApplyResultSelector<TResult> (Func<TKey, IEnumerable<TElement>, TResult> selector)
{
- throw new NotImplementedException ();
+ foreach (IGrouping<TKey, TElement> group in groups.Values)
+ yield return selector (group.Key, group);
}
public int Count