Hi all,
As I know, in HashTable the key string's hash value is unique because if there are two same strings, the GetHashCode() function will overwrite the first one with the second.
This will ensure that there's no identical hash values generated by the different strings with same values.
But when it comes to generic dictionary class, we can specify any type as the type parameter for the key.
So, the hash value generated by that key can't be unique since it does not perform the string behaviour. Is that so?
If not, what is the procedure going behind this generic scenario?
Thanks in advance,
Jay...