Answers for "how to check if an element in a list is 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

check list exist in list c# if matches any

var items = (from x in parameters
                join y in myStrings on x.Source equals y
                select x)
            .ToList();
Posted by: Guest on November-06-2021

Code answers related to "how to check if an element in a list is in another list c#"

Browse Popular Code Answers by Language