Issue 14 in backlinq: GroupJoin that takes a comparer calls GetEnumerator more than once

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 18, 2008, 3:29:20 AM9/18/08
to backlin...@googlegroups.com
Issue 14: GroupJoin that takes a comparer calls GetEnumerator more than once
http://code.google.com/p/backlinq/issues/detail?id=14

New issue report by dominik....@skybow.com:
What steps will reproduce the problem?
test method:
GroupJoinInnerOuterKeySelectorInnerKeySelectorResultSelectorComparer_ValidA
rguments_CorrectGroupingAndJoining()

Issue attributes:
Status: Assigned
Owner: dominik....@skybow.com
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Sep 18, 2008, 3:47:24 AM9/18/08
to backlin...@googlegroups.com
Issue 14: GroupJoin that takes a comparer calls GetEnumerator more than once
http://code.google.com/p/backlinq/issues/detail?id=14

Comment #1 by azizatif:
The problem is in the test itself (rather than the GroupJoin operator
implementation), which runs the query twice and therefore ends up consuming
the
source twice as well. See lines 697-704 of EnumerableFixture.cs in r127:

foreach (var owner in result) {
Debug.WriteLine(owner.OwnerName);
Debug.Indent();
foreach (var petName in owner.Pets) {
Debug.WriteLine(" " + petName);
}
Debug.Unindent();
}

The exception occurs at line 697.

Issue attribute updates:
Status: Invalid

Reply all
Reply to author
Forward
0 new messages