ArrayExtensions.WrapIndex(Array, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Wraps the index around to the beginning of the array if the provided index is longer than the array.
public:
[System::Runtime::CompilerServices::Extension]
static int WrapIndex(Array ^ array, int index);
public static int WrapIndex (this Array array, int index);
static member WrapIndex : Array * int -> int
<Extension()>
Public Function WrapIndex (array As Array, index As Integer) As Integer
Parameters
- array
- Array
The array to wrap the index around.
- index
- Int32
The index to look for.