ListExtensions.IsInBounds<T>
Extension Method in ListExtensions
Declaration
public static bool IsInBounds<T>(this List<T> list, int index)
Description
Checks if the specified index is within the bounds of the list.
Type Parameters
T | The type of the list. |
Parameters
list | The list to check. |
index | The index to check. |
Returns
bool | True if the index is within the bounds of the list. |