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

TThe type of the list.

Parameters

listThe list to check.
indexThe index to check.

Returns

boolTrue if the index is within the bounds of the list.