Can I use C# Dictionary on classes like arrays??
Dictionary<double[],double[]>
I am afraid that it will not be able to tell when arrays are equal…
EDIT:
Will the hashing method in the dictionary take well care of arrays? or just hashing their references?
For array keys, the dictionary willuse the references for hashing and equality, which probably isn’t what you want. This leaves you with two choices: implement a wrapper class for
double[], or (better) write something that implementsIEqualityComparerand pass it to theDictionary<T, T>constructor.