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.
我有一份责任清单和一份具有共同领域合同的稀释清单。我需要在责任清单中删除稀释清单中存在的所有合同,我想用 Linq 来做。
到目前为止,我一直试图解决这个问题。
有任何想法吗?
这可以解决问题:
var deletions = from a in accountables join d in dilutions on a.Contract equals d.Contract into gds where gds.Any() select a; foreach (var d in deletions.ToArray()) { accountables.Remove(d); }