standards-c-sharp

Using reference types as keys

Note that any object used as a key (eg. in HashSet<T>.Add()) must have a suitable implementation of Object.GetHashCode() and should override Object.Equals() as described here.