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

asked on

How to sort and filter using LINQ ?

I have the below employee object with following  values.
How do I sort by Emp_Number    using LINQ ?
How to filter Designation      ='Manager' using  LINQ ?


        List<Employee>  employeeDetail= new List<Employee>();


Emp_Number            Name          Designation      salary
1                                   aa               Employee         30000
2                                   a1               Manager           60000
3                                    b1              Employee         35000
6                                   b2              Employee          32000
5                                   c1               Manager           40000
ASKER CERTIFIED SOLUTION
Avatar of unknown_routine
unknown_routine
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