ContainsValue doesnt work
Problem with Generic.Dictionary and Generic.SortedDictionary.
ContainsValue function of both of these classes works with usual datatypes. But when you make a collection of the objects of a class that you have defined yourself it doesnt work.
I know that it requires you to implement IComparable which i have done already. And this implementation works fine for the other function - Sort- that demands it.
Please help.
|