( T ) .Reverse Method (Int32, Int32)
.NET Framework 4.6 and 4.5
Reverses the order of the elements in the specified range.
member Reverse :
index: int *
count: int -> unit
Parameters index Type: System .Int32
The zero-based starting index of the range to reverse.
count Type: System .Int32
The number of elements in the range to reverse.
This method uses
to reverse the order of the elements. Array .Reverse
This method is an O(
n) operation, where n is . Count
The following example demonstrates both overloads of the
method. The example creates a Reverse of strings and adds six strings. The List (T ) method overload is used to reverse the list, and then the Reverse () method overload is used to reverse the middle of the list, beginning with element 1 and encompassing four elements. Reverse(Int32, Int32)
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0, 2.0, 1.0
.NET for Windows Phone apps
Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Portable Class Library
Supported in: Portable Class Library
( 1500 characters remaining)
Thank you for your feedback