Order of elimination when using Distinct() on collection
Posted
by zsharp
on Stack Overflow
See other posts from Stack Overflow
or by zsharp
Published on 2010-05-11T18:32:38Z
Indexed on
2010/05/11
18:34 UTC
Read the original article
Hit count: 258
c#
|collections
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.
© Stack Overflow or respective owner