Tag: Equals
-
Implementing IEquatable is not enough to use a class as a Dictionary key
—
Note to future self: it is not enough to implement IEquatable<T> to use a class as a Dictionary key. Today I needed a Dictionary with a composite key, a combination of several values. So I quickly cooked up a class with public properties to cover the values and for ease of use, a constructor to…