I have a group of strings grouped by MyID attribute. Now I need one row from each group, where the StatusDate attribute is the highest in this group.
This is what I came up with.
rows.Select(x => x.Where(y => y.StatusDate == x.Max(z => z.StatusDate)).First())
With a more detailed explanation:
rows.Select(x =>
Is there a faster or more idiomatic way to do this?
Deniz dogan
source share