I have a array of int which I have to sort by descending.
Since I did not find any method to sort the array in descending order.Currently I am sorting the array in
Use LINQ OrderByDescending method. It returns IOrderedIEnumerable, which you can convert back to Array if you need so. Generally, List<>s are more functional then Arrays.
OrderByDescending
IOrderedIEnumerable
List<>
Array
array = array.OrderByDescending(c => c).ToArray();