Compare to <String> using linq?
You can use Enumerable.Intersect :
var inMaster = ListMaster.Intersect(List1.Concat(List2)); If you want to know which ones are in List1 that are not in the main list, use Except :
var newInList1 = List1.Except(ListMaster); and for List2 :
var newInList2 = List2.Except(ListMaster); Can I use the .all list to check the entire list item in another list for a list of strings
So you want to know if all the elements of one list are in another list. Then using Except + Any much more efficient (if the lists are large), because Intersect and Except use sets inside, and All - all elements.
So, for example, does the main list contain all the rows List1 and List2 ?
bool allInMaster = !List1.Concat(List2).Except(ListMaster).Any(); You can use the Enumerable.Intersect method, for example:
Performs the specified intersection of two sequences, using the default value, compare the values.
var inMaster1 = List1.Intersect(ListMaster); var inMaster2 = List2.Intersect(ListMaster); Here is the DEMO .