Advertisement

05.09.2008 at 11:41PM PDT, ID: 23391353
[x]
Attachment Details

using aggregate function in LINQ->Objects

Asked by vj_mi in Language Integrated Query - LINQ

The below code is giving error when I want to use Count function:

    var procQuery = from p in System.Diagnostics.Process.GetProcesses()
                            //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
[+][-]05.10.2008 at 05:19AM PDT, ID: 21538704

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 05:21AM PDT, ID: 21538708

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 06:52AM PDT, ID: 21539044

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 08:18AM PDT, ID: 21539344

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 10:56AM PDT, ID: 21539960

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 05:16PM PDT, ID: 21541006

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 09:46PM PDT, ID: 21541502

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 05:42AM PDT, ID: 21542317

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 05:44AM PDT, ID: 21542323

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Language Integrated Query - LINQ
Sign Up Now!
Solution Provided By: emoreau
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628