If you don't want to add the MoreLinq library to the project just to have the DistinctBy features Then you can certainly get the identical end result using the overload of Linq's Unique technique that can take in an IEqualityComparer argument. I used to be beating my head on this https://propertyingurugram.in/residential/true-habitat-bodh-79-central-sector-79-gurgaon/