Reverse int c# Linq?

Reverse int c# Linq?, someone asked me to explain?

In this example I will show you how to reverse the order of the array element using c# Linq. I stored list of numbers in an integer array in a variable. I need to include namespace System.Linq and used reverse extension method. The result will be element of arrays in the opposite direction.


static void Main(string[] args)
            int[] numbers = { 100, 905, 7080, 60, 70 };
            var reverse = numbers.Reverse();
            foreach (var group in reverse)
                Console.WriteLine(" " + group);


Reverse int c# Linq

Post your comments / questions