Mono Class Library: System.Array Overview | Members

System.Array.Reverse Method

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

[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. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionarray is null. [Edit]
RankExceptionarray has more than one dimension. [Edit]

Remarks

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

Requirements

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