var a = new double[] {1, 2, 3}; var b = new double[] {1, 2, 3}; System.Console.WriteLine(Equals(a, b));
However, I am looking for a way to compare arrays that will compare internal values ββinstead of references. Is there a built-in way to do this in .NET?
In addition, although I understand Equals link comparison, GetHashCode also returns different values ββfor the two arrays, which in my opinion should not happen, since they have the same internal values.
dlras2 Apr 28 '11 at 3:00 2011-04-28 03:00
source share