What happens when hash collision happens in Dictionary key?
Hash collisions are correctly handled by Dictionary<> – in that so long as an object implements GetHashCode() and Equals() correctly, the appropriate instance will be returned from the dictionary. First, you shouldn’t make any assumptions about how Dictionary<> works internally – that’s an implementation detail that is likely to change over time. Having said that…. … Read more