I would like override the GetHashCode method on a hashtable in C#.
I use the hashtable as a multidimensional key in a complex object.
How could do that ?
Different order of Keys in hKey must return the same hashCode.
Something like this doesn't work:
Hashtable hkey;
int i = 0;
foreach (DictionaryEntry de in hkey)
i ^= de.GetHashCode();
return i;