I have a list of objects that has some duplicates by a property. I would like to get all non-duplicate and also 1 of the duplicates based on a condition.
For eg.
I suggest that you first GroupBy the Code property, and then select the Max of each element in the group
GroupBy
Code
Max