Filter by Tags

How to Sort a List<T> by a property in the object

Votes

0

0 0

Using C#, how can we sort a list of objects by a given property. For example, if a class has the following properties


class Student


{


    public int Id{get;set;}


    public string Name{get;set;}


    public EmailId{get;set;}


    public int Marks{get;set;}


}


How can we sort the list of students according to marks property

Open E-School
Posted on : Sun, Jan 07, 2018
Views : 61
Comments

Ask Question

If you want to ask question you must LogIn or SignUp
Login SignUp
To Add your Answer Please
LogIn | SignUp

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp