Check out example codes for "c# array Reverse method". It will help you in understanding the concepts better.
Code Example 1
char[] array = {'a','b','c'};
Array.Reverse(array);
Code Example 2
using System;
namespace Demo {
class MyArray {
static void Main(string[] args) {
int[] list = { 29, 15, 30, 98};
int[] temp = list;
Console.Write("Original Array: ");
foreach (int i in list) {
Console.Write(i + " ");
}
Console.WriteLine();
// reverse the array
Array.Reverse(temp);
Console.Write("Reversed Array: ");
foreach (int i in temp) {
Console.Write(i + " ");
}
Console.ReadKey();
}
}
}
Learn ReactJs, React Native from akashmittal.com