Mono Class Library: System.Array Overview | Members

System.Array.Reverse Method

Reverses the sequence of the elements in the specified one-dimensional Array.

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.MayCorruptInstance, System.Runtime.ConstrainedExecution.Cer.MayFail)]
public static void Reverse (Array array)

Parameters

array
The one-dimensional Array to reverse.

Exceptions

TypeReason
ArgumentNullExceptionarray is null.
RankExceptionarray has more than one dimension.

Remarks

This version of Array.Reverse(Array) is equivalent to Array.Reverse(Array)(array, array.GetLowerBound(0), array.Length).

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0