If my collection is ordered by date will Distinct() take the first object in list of adjacent duplicates or is it not certain? I am using IEqualityComparer that does not consider date field but I want to be sure the latest date is always taken.
Share
You should use
GroupBy:EDIT: You can also use your
IEqualityComparerwithGroupBy: