NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Array.Reverse (Array)

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
);

Parameters

array
The one-dimensional Array to reverse.

Return Value

None.

Exceptions

Exception Type Condition
ArgumentNullException array is a null reference (in Visual Basic Nothing).
RankException array is multidimensional.

Remarks

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.

See Also

Array Class | Array Members | System Namespace | Array.Reverse Overload List