Is there a tool or library to find duplicate entries in a Collection according to specific criteria that can be implemented?
To make myself clear: I want to compare the entries to each other according to specific criteria. So I think a Predicate returning just true or false isn’t enough.
I can’t use equals.
I’ve created a new interface akin to the
IEqualityComparer<T>interface in .NET.Such a
EqualityComparator<T>I then pass to the following method which detects duplicates.This way I can customise the comparison to my needs.