ArrayExtensions.WrapIndex(Array, Int32) Method

Definition

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.

Returns

Applies to