Answers for "c# find any items in one list that are in another list ."

1

find element in list not in another list c#

var result = peopleList2.Where(p => !peopleList1.Any(p2 => p2.ID == p.ID));
Posted by: Guest on April-13-2021
0

get elements in list in another list c#

result = lista.Where(a => listb.Any(b => a.ToLower() == b.ToLower()));
Posted by: Guest on June-23-2021

Code answers related to "c# find any items in one list that are in another list ."

Browse Popular Code Answers by Language