int[] anArray = { 1, 5, 2, 7 ,8,3,6,9}; int[] max5items = anArray.OrderByDescending(x=>x).Take(5).ToArray();
int[] intArray = new int[5] { 8, 10, 2, 6, 3 }; Array.Sort(intArray);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)