GetHashCode
does return an int, but if the comparison for the hash codes determines they are the same, it folllows by calling the Equals
method (which you should override).
So, no, you don't have to switch. You can keep using the same old lovable HashSet
(as long as you don't run out of memory).