Filter by Tags

C# - How to sort a collection of objects ?



0 0
This Question is relate to a Discussion :

Using C# how can we sort a list of objects. Suppose we have a collection of objects of the following class

class Test


    public int X{get;set;}

    public string Name{get;set;}


How can we sort the collection to get a new collection which has objects with the largest to smallest values of X.

Ravinder Singh
Posted on : Wed, Aug 16, 2017
Views : 155

Ask Question

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

Quick Links



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..


Login to Open ESchool OR Create your account    Login   SignUp