You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
int[] source = { 1, 2, 3, 2, 1 };
source.DistinctBy(x => x, null);
What is the expected output? What do you see instead?
The expected output is { 1, 2, 3 } assuming the default comparer
implementation since a null comparer is supplied. This would be consistent
with the Enumerable.Distinct operator from Microsoft's base LINQ-to-
Objects implementation. However, what one sees instead is a
ArgumentNullException from DistinctBy.
Original issue reported on code.google.com by azizatif on 15 Feb 2009 at 6:58
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
azizatif
on 15 Feb 2009 at 6:58The text was updated successfully, but these errors were encountered: