ListExtensions.WrapIndex<T>
Extension Method in ListExtensions
Declaration
public static int WrapIndex<T>(this List<T> list, int index)Description
Wraps an index to either end of the list if it is out of bounds.
Type Parameters
| T | The type of the list. |
Parameters
| list | The list to wrap. |
| index | The index to wrap. |
Returns
| int | The wrapped index. |