Any idea on how to check whether that list is a subset of another?
Specifically, I have
List t1 = new List { 1, 3, 5 }; L
Given then we have 2 arrays, array1 and array2 and we want to check that all array1 values exists in array2:
array1
array2
array1.All(ar1 => array2.Any(ar2 => ar2.Equals(ar1)));
Note: ar2.Equals(ar1) can be replaced if equality is described in other way.
ar2.Equals(ar1)