[Mono-bugs] [Bug 601101] New: GroupBy excludes groups with a null key if they are the last grouping
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 29 17:03:46 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=601101
http://bugzilla.novell.com/show_bug.cgi?id=601101#c0
Summary: GroupBy excludes groups with a null key if they are
the last grouping
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Core
AssignedTo: jbevain at novell.com
ReportedBy: richard.kiene at logos.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=357920)
--> (http://bugzilla.novell.com/attachment.cgi?id=357920)
Test application showing the group by bug
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US)
AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2
If you have the following list:
List<Data> listValues = new List<Data>();
listValues.Add(new Data(0, "a"));
listValues.Add(new Data(1, "a"));
listValues.Add(new Data(2, "b"));
listValues.Add(new Data(3, "b"));
listValues.Add(new Data(4, null));
there should be three groups returned when doing a group by on the second item
in the Data pair. However only two groups are returned.
This is not the case if null is not the last group in the collection.
Reproducible: Always
Steps to Reproduce:
1. Create an IEnumerable collection of pairs with at least one null value in a
pairs value which will be the group by key
2. Make sure the pair with the null value group by key is the last new key in
the collection
3. Group by this key
Actual Results:
Non-null groups are returned, but null group is not returned
Expected Results:
All groups, regardless of the key being null, should be returned
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list