Queryable.Reverse
using System;
using System.Collections.Generic;
using System.Linq;
public class MainClass {
public static void Main() {
int[] numbers = { 10, 9, 8, 7, 6 };
IEnumerable<int> reversed = numbers.Reverse(); // { 6, 7, 8, 9, 10 }
}
}
Related examples in the same category