The ==
operator compares by reference; those are two different instances.
Array.Equals
is really Object.Equals
, which calls the instances Equals
method.
Since arrays do not override Equals()
, this too compares by reference.
Instead, you should call the LINQ SequenceEqual()
method.