Sorry about the white space. Like I said, it basically fixes the issue for our project, but I doubt it is the ideal way to fix the issue. Since the Dictionary will need to be removed from the function perhaps a re-write is in order.
I've again attached the patch, and I release it under the MIT/X11 License. Thanks, Richard Kiene
Index: System.Linq/Enumerable.cs =================================================================== --- System.Linq/Enumerable.cs (revision 147679) +++ System.Linq/Enumerable.cs (working copy) @@ -756,6 +756,11 @@ yield return grouping; counter++; } + + if (counter == nullCounter) { + Grouping<TKey, TElement> nullGroup = new Grouping<TKey, TElement> (default (TKey), nullList); + yield return nullGroup; + } } public static IEnumerable<TResult> GroupBy<TSource, TKey, TElement, TResult> (this IEnumerable<TSource> source,
On Apr 29, 2010, at 2:32 PM, Alan McGovern wrote:
|
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list