Hello, all!
There's no documentation of an overriden Equals() method for arrays, and
there does not seem to be one in fact, since any of these assertions will
crash:
int[] x = { 0, 1 };
int[] y = { 0, 1 };
// System.Diagnost ics.Debug.Asser t(x == y, "Arrays equal?");
// System.Diagnost ics.Debug.Asser t(Array.Equals( x, y), "Arrays equal?");
// System.Diagnost ics.Debug.Asser t(x.Equals(y), "Arrays equal?");
Obviously I can loop through them, but do I have to?
Tony Nassar
The Analysis Corp.
703-208-9630
There's no documentation of an overriden Equals() method for arrays, and
there does not seem to be one in fact, since any of these assertions will
crash:
int[] x = { 0, 1 };
int[] y = { 0, 1 };
// System.Diagnost ics.Debug.Asser t(x == y, "Arrays equal?");
// System.Diagnost ics.Debug.Asser t(Array.Equals( x, y), "Arrays equal?");
// System.Diagnost ics.Debug.Asser t(x.Equals(y), "Arrays equal?");
Obviously I can loop through them, but do I have to?
Tony Nassar
The Analysis Corp.
703-208-9630
Comment