check if two arrays are the same c# code example Example: see if two string arrays are equal c# bool areEqual = a.SequenceEqual(b);