Compare Arrays in C#: Equality, SequenceEqual and Speed
Use SequenceEqual(). It compares two arrays element by element and returns true when they hold equal values in the same order, which is what "the same array" almost always means. ==, Equals(), and ReferenceEquals() do something different: they ask whether two...
