有没有一种方法可以检查一个列表是否与另一个列表发生冲突?例如:
bool hit=false;
foreach(var s in list2)
{
if (list1.Contains(s))
{
hit = true;
break;
}
}
if (!hit)
{