in this code trying to fetch a process by name
how can i add a second filter to query
IEnumerable<Process> processList =
from p in Process.GetProcesses()
where p.ProcessName.StartsWith("Mon") || p.ProcessName.StartsWith("Tue")
select p;
it is what i tried corrected it , the example above dows work
just add && if you want AND conditions or || if you want OR conditions.
edit after OP commented:
If you want to access the elements of your IEnumerable:
if you want to iterate over all the elements, you can use a foreach.