SyntaxFix
Write A Post
Hire A Developer
Questions
You can check if a list is inside of another list with this
var list1 = new List<int> { 1, 2, 3, 4, 6 }; var list2 = new List<int> { 2, 3 }; bool a = list1.Any(c => list2.Contains(c));