ArrayExtensions.WrapIndex
Extension Method in ArrayExtensions
Declaration
public static int WrapIndex(this Array array, int index)Description
Wraps an index to either end of the array if it is out of bounds.
Parameters
| array | The array to wrap. |
| index | The index to wrap. |
Returns
| int | The wrapped index. |