Find if listA contains any elements not in listB

后端 未结 7 702
春和景丽
春和景丽 2020-11-30 03:25

I have two lists:

List listA     
List listB

How to check using LINQ if in the listA exists an element w

相关标签:
7条回答
  • 2020-11-30 04:29

    listA.Except(listB) will give you all of the items in listA that are not in listB

    0 讨论(0)
提交回复
热议问题