I've been watching C# questions recently and I came across a question that could be answered the same way as this question and I'm pretty sure there are many other questions that have the same answer that globaly tells something like
Use the overload of the
Distinct
method that uses anIEqualityComparer<T>
The difference though is that these answers also provide an example for implementing the IEqualityComparer<T>
for the question's specific case.
To me there are more generic answers here (and this question's answers can be applied to both previous questions) but what should be done with these questions that look like duplicates?