Implemented IEquatable<> interface to improve performance for generic dictionary lookups.