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