List A:
1, 2, 3, 4
List B:
2, 5
How to check if list A contains any value from list B?
e.g. someth
You can check if a list is inside of another list with this
var list1 = new List { 1, 2, 3, 4, 6 }; var list2 = new List { 2, 3 }; bool a = list1.Any(c => list2.Contains(c));