csharp list id if axist in other list
Code Example - csharp list id if axist in other list
var result = peopleList2.Where(p => !peopleList1.Any(p2 => p2.ID == p.ID));
var result = peopleList2.Where(p => !peopleList1.Any(p2 => p2.ID == p.ID));