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.
Reported by azizatif on 2009-02-15 18:58:27
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 3
Reported by
azizatif
on 2009-02-15 18:58:27The text was updated successfully, but these errors were encountered: