score:0

Accepted answer
private static bool duplicateitem(list<list<string>> basket, string[] line)
{
    return basket.exists(row => row[0] == line[0]);
}

score:0

if (!basket.contains(linecontents[0].tostring()))
basket.add(linecontents[0].tostring());

Related Query

More Query from same tag