The Contains method relies on the Equals method of its elements to see if it contains a specific value. Arrays do not override the default implementation of Equals , so Contains will only consider an array that will be equal to the unit already included in the list if it is a reference to the same object (the default behavior is Equals ).
To get around this, you can use the Enumerable.Any() extension method along with the SequenceEqual extension method:
if (!possibleColumnValues.Any(item.SequenceEqual)) { possibleColumnValues.Add(rArr); }
source share