【发布时间】:2014-03-09 07:48:38
【问题描述】:
我有两个列表
List<int> A= new List<int>()
{33,50,30,90,1,4,5,6,66,
};
and
List<int> B=new List<int>()
{50,4,33};
现在我想找出列表 A 中所有不在列表 B 中的元素
【问题讨论】:
-
您好 user3126901,您能告诉我们您的尝试吗?某些示例代码不起作用,或者某些搜索字词无法为您提供正确的结果?
-
A.Except(B);[MSDN : Enumerable.Except()]