I have overridden Equal(Object comparee)
method but when i add objects to my HashSet i still get doubles. What did i miss? The MyType
type contains two int
fields (let's say that). Is HashSet
a wrong collection type, perhaps?
I wish to add some MyType
thingies but so that the collection only stores the unique ones, where unique is defined by me (using Equals
method or any other way).