I know in normal Linq grammar, orderby xxx descending is very easy, but how do I do this in Lambda expression?
orderby xxx descending
Try this:
List list = new List(); list.Add(1); list.Add(5); list.Add(4); list.Add(3); list.Add(2); foreach (var item in list.OrderByDescending(x => x)) { Console.WriteLine(item); }