User Tools

Site Tools

blog:2024-12-05-004



2024-12-05 How to Sort a List<T> by a property in the object

  • How to Sort a List<T> by a property in the object, the easiest way is to use Linq:
  • List<Order> SortedList = objListOrder.OrderBy(o=>o.OrderDate).ToList();

Reference

TAGS

  • 6 person(s) visited this page until now.

Permalink blog/2024-12-05-004.txt · Last modified: 2024/12/05 14:44 by jethro

oeffentlich