c#: Sorting List of Complex Type or an Object using IComparable

To do sorting with List<T> of your own object type you need to implement IComparable<T> interface into the class itself. So when you have a List of the object you can easily call listOfObject.Sort() to sort the content of that list. For example: imagine you have a Class Schedule for work schedule and that classContinue reading “c#: Sorting List of Complex Type or an Object using IComparable”