【发布时间】:2017-02-09 07:41:10
【问题描述】:
我有一个对象列表 (List1) 和字符串列表 (List2 - 对象名称列表)
如果 List2 中不存在 object.Name,我需要从 List1 中获取所有对象
这个LINQC#怎么写?
【问题讨论】:
-
Quickest way to compare two List<> 的可能重复项。我意识到这是
string与object,但Skeet's answer refers to that issue specifically in the comments as well。