【发布时间】:2011-09-13 22:38:12
【问题描述】:
基本上,我该怎么做才能做到类似于:CurrentCollection.Contains(...),除了比较项目的属性是否已经在集合中?
public class Foo
{
public Int32 bar;
}
ICollection<Foo> CurrentCollection;
ICollection<Foo> DownloadedItems;
//LINQ: Add any downloaded items where the bar Foo.bar is not already in the collection?
【问题讨论】:
标签: c# linq collections contains