If you don't need to include the MoreLinq library in your undertaking just to get the DistinctBy operation You'll be able to get precisely the same end result utilizing the overload of Linq's Unique approach that requires within an IEqualityComparer argument. I came upon this difficulty when refactoring a function https://propertyingurugram.in/repo-rate-hike-how-real-estate-developers-reacted/