I'd suggest to read this:
Filtering with DataView (LINQ to DataSet) - ADO.NET | Microsoft Learn[
^]
If you would like to filter the dataset using
IN
clause, then you have to use
Any[
^] method.
See:
List<int> myset = Enumerable.Range(0,100).ToList();
List<int> itemstofind = new List<int>(){1,5,19,28,37,42,69,88,15,9,33,17,99};
List<int> result = myset.Where(x => itemstofind.Any(y => y.Equals(x))).ToList();
foreach(int i in result)
Console.WriteLine(i);