Compare two lists that contain a lot of objects

后端 未结 3 1643
时光说笑
时光说笑 2021-01-22 19:33

I need to compare two lists where each list contains about 60,000 objects. what would be the most efficient way of doing this? I want to select all the items that are in the so

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-22 20:25

    Use Except() and read more about set operations with linq and set operations with HashSet.

提交回复
热议问题