我有一台List<int>和一台List<customObject>。customObject类有一个ID属性。如何使用LINQ获取只包含ID属性在List<int>中的对象的List<customObject>?
List<int>
List<customObject>
编辑:我接受了Konrads的答案,因为它更容易阅读/更直观。
https://stackoverflow.com/questions/37805
相似问题