METHOD

Array.Reverse

Reverses the elements in the existing array. Other references to the same array observe the changed order.

Formal Syntax & Structure

csharp syntaxcsharp
Array.Reverse(values)

Working Example

Example Snippetcsharp
using System;int[] values = { 2, 4, 6 };Array.Reverse(values);Console.WriteLine(string.Join(",", values)); // 6,4,2
C# & .NET Reference