Reverses the sequence of the elements in the entire one-dimensional Array.
[Visual Basic] Overloads Public Shared Sub Reverse( _ ByVal array As Array _ ) [C#] public static void Reverse( Array array ); [C++] public: static void Reverse( Array* array ); [JScript] public static function Reverse( array : Array );
None.
Exception Type | Condition |
---|---|
ArgumentNullException | array is a null reference (in Visual Basic Nothing). |
RankException | array is multidimensional. |
After a call to this method, the element at Array [i], where i is any index in the array, moves to Array [j], where j equals the length of the array- i- 1.
Array Class | Array Members | System Namespace | Array.Reverse Overload List