If you don't need so as to add the MoreLinq library to your project just to obtain the DistinctBy operation Then you can certainly get precisely the same end result using the overload of Linq's Unique method that can take in an IEqualityComparer argument. I found this problem when refactoring https://propertyingurugram.in/sectors-92-and-93-a-promising-premium-floors-destination-in-new-gurugram/