public int GetHashCode(Employe obj)
{
return obj.GetHashCode();
}
For this method, return a hashcode of the properties that you are comparing for equality, instead of the object itself. Comparing the hashcode of the objects will always be false, so your list will never be filtered for duplicates.