If you do not need to add the MoreLinq library to the undertaking just to get the DistinctBy operation You'll be able to get precisely the same final result using the overload of Linq's Distinct approach that can take within an IEqualityComparer argument. For an example of a member variable https://propertyingurugram.in/golf-course-extension-road-a-promising-real-estate-growth-corridor/