Im trying to check if a list contains any of these values. The way im setting this up right now is like this:
List.contains(“Number”)or List.contains(“Department”) or List.contains(“Ready”)
But I feel like there should be an easier method because I have to check for many values. So something like
List.contains(“Number”, “Department”, “Ready”)
listVar1.Except(listVar2).ToList : gives all the items from listVar1 that are not in listVar2.
listVar1.Except(listVar2).ToList.Count : gives number of the items from listVar1 that are not in listVar2.
listVar1.Count - listVar2.Count : gives the difference between number of items in listVar1 and listVar2
If list1 contains all the items from listVar2, then the result of Explanation point 2 and Explanation point 3 will match, and output of the above query will be True, else False.