Answers for "c# linq find items in what list that are not in another list"

0

Use LINQ to get items in one List

var result = peopleList2.Where(p => !peopleList1.Any(p2 => p2.ID == p.ID));
Posted by: Guest on January-01-1970
0

Use LINQ to get items in one List

var result = peopleList2.Where(p => peopleList1.All(p2 => p2.ID != p.ID));
Posted by: Guest on January-01-1970

Code answers related to "c# linq find items in what list that are not in another list"

Browse Popular Code Answers by Language