別のコレクションを除外:これは私のタイプであるラムダ
public class myType
{
public int Id { get; set; }
public string name { get; set; }
}
そして、この種の2のコレクションがあります:
List<myType> FristList= //fill ;
List<myType> Excludelist= //fill;
は、私は次のようにFristList
なものからExcludelist
を除外する必要があります:
List<myType> targetList =
FirstList.Where(m=>m.Id not in (Excludelist.Select(t=>t.Id));
正確なラムダエクスプレスについてのあなたの提案上記の質問のイオン?
可能重複(http://stackoverflow.com/questions/5091922/how-to-subtract-one-huge-list-from-another-efficiently-で-Cシャープ) – richardtallent