Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两组(IList),我需要第一个列表中的所有项目,其中项目不在第二个列表中。
谁能指出我用 LINQ 语句实现这一目标的最佳方法?
方法如何Except:
Except
var firstMinusSecond = first.Except(second);