I have a class, show below, which is used as a key in a Dictionary I\'m having issues when trying to find any key within this diction
Dictionary
I had this problem, turns out the dictionary was comparing referances for my key, not the values in the object.
I was using a custom Point class as keys. I overrode the ToString() and the GetHashCode() methods and viola, key lookup worked fine.