Link to home
Start Free TrialLog in
Avatar of Varshini S
Varshini S

asked on

Group By Using Linq

I have the below object  List<Employees>
EmployeeID
Name
Designation
DOB
DOJ
Department


How do I use linq to group by the output like below

Designation      NoOfEmployees
Sales                   250
Marketing          100
Finance               25
HR                       15
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Hi Rubha;

Are you wishing to group on Designation or Department?
Avatar of Varshini S
Varshini S

ASKER

Department
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial