Disjoint Union in LINQ

后端 未结 1 535
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 16:28

I have two sets (ILists) where I need all the items from the 1st list, where the item is not in the second list.

Can anyone point me to the best way of achieving thi

相关标签:
1条回答
  • 2020-12-06 16:47

    How about the Except method:

    var firstMinusSecond = first.Except(second);
    
    0 讨论(0)
提交回复
热议问题