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

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 "find items in list that are in another list c#"

Browse Popular Code Answers by Language