Horje
built in methods to order a list c# Code Example
built in methods to order a list c#
using System.Linq;
//This list contains OrderDate, OrderID, Quantity, Total properties
List<Order> objListOrder = new List<Order>(); 
//How to GetOrderList(objListOrder)?
//Answer:
//- Ascending order
List<Order> SortedList = objListOrder.OrderBy(o=>o.OrderDate).ToList();
//- Descending order
List<Order> SortedList = objListOrder.OrderByDescending(o=>o.OrderDate).ToList();




Csharp

Related
extension method c# Code Example extension method c# Code Example
how to change textMesh Pro unity Code Example how to change textMesh Pro unity Code Example
fon der lajen Code Example fon der lajen Code Example
how to say hello world in c# Code Example how to say hello world in c# Code Example
loop through multidimensional array c# Code Example loop through multidimensional array c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12