Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

select from list where not in other list c#

var result = peopleList2.Where(p => !peopleList1.Any(p2 => p2.ID == p.ID));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #list #list
ADD COMMENT
Topic
Name
6+6 =