find element in list not in another list c# code example
Example 1: find element in list not in another list c#
var result = peopleList2.Where(p => !peopleList1.Any(p2 => p2.ID == p.ID));
Example 2: c# list item not in another list
var result = list1.Except(list2);