c# where string in list code example Example: c# list string where fileList.Where(item => filterList.Contains(item))