c# member not in list code example
Example 1: select from list where not in other list c#
var result = peopleList2.Where(p => peopleList1.All(p2 => p2.ID != p.ID));
Example 2: c# check list of objects for value
var matches = myList.Where(p => p.Name == nameToExtract);