The below code is giving error when I want to use Count function:
var procQuery = from p in System.Diagnostics.Process
.GetProces
ses()
//check for processes whose memory usage is grater than 50B
where p.WorkingSet64 > 50* 1024 * 1024
group p by p.ProcessName into g
select new { procQuery1 = procQuery.Count};
foreach (var process in procQuery)
Response.Write("Count of processes is: " + procQuery);
Start Free Trial