LINQ Query to filter DTO

Posted by brabone on Stack Overflow See other posts from Stack Overflow or by brabone
Published on 2010-05-21T19:14:15Z Indexed on 2010/05/21 19:20 UTC
Read the original article Hit count: 156

Filed under:
|

I have an array...and I need to exclude all the items in this array of string from the masterList.customField as shown below

string[] excludeItem = {"a","b","c"};

CustomDTO[] masterList = service.LoadMasterList();

masterList.Where(c=> masterList.customField NOT IN excludeItem

How do I achieve the NOT IN part above?

© Stack Overflow or respective owner

Related posts about linq-to-objects

Related posts about c#