Start here. This is the direct spoken answer to practice first.
Why this question matters
Hash-based collections are everyday tools whose correctness depends on an equality contract that is easy to violate silently.
Dictionary and HashSet are hash-based collections. A dictionary maps a unique key to a value, while a hash set stores unique values and answers membership questions. Both use a hash code to narrow the search and equality to confirm a match. Different values can share a hash code, so the collection still needs equality after finding the bucket.