我有一个字符串数组列表。我通过迭代创建了一个新的字符串数组,并尝试将其放入列表中,但它不检查当我使用contains函数时是否存在,而是插入重复项。检查字符串数组是否存在于字符串列表中
List<string[]> possibleColumnValues = new List<string[]>();
while(true){
string[] rArr = new string[5];
//some code to populate the string goes here
if (!possibleColumnValues.Contains(rArr){
{
possibleColumnValues.Add(rArr);
}
}