Distinct by property of class by linq
Posted
by phenevo
on Stack Overflow
See other posts from Stack Overflow
or by phenevo
Published on 2010-03-29T12:31:49Z
Indexed on
2010/03/29
12:53 UTC
Read the original article
Hit count: 160
I have a collection:
List<Car> cars=new List<Car>
Cars are uniquely identified by CarCode.
I have three cars in the collection, and two with identical CarCodes.
How can I use LINQ to convert this collection to Cars with unique CarCodes?
© Stack Overflow or respective owner