ArrayExtensions.Reversed<T>

Extension Method in ArrayExtensions

Declaration

public static T[] Reversed<T>(this T[] array)

Description

Reverses the order of the elements in the array.

Type Parameters

TThe type of the array.

Parameters

arrayThe array to reverse.

Returns

T[]A new array with the order of the elements reversed.