list c# value code example
Example 1: to list c#
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
Example 2: c# list string where
fileList.Where(item => filterList.Contains(item))
var arr = new int[] {1, 2, 3};
List<int> list = arr.ToList();
fileList.Where(item => filterList.Contains(item))