HasIndex Method
Definition
- Namespace
- Cuemon.Extensions.Collections.Generic
- Assemblies
- Cuemon.Extensions.Collections.Generic.dll
HasIndex<T>(IList<T>, int)
Determines whether the list of the IList<T> is within the range of the index.
public static bool HasIndex<T>(this IList<T> list, int index)
Parameters
Returns
- bool
trueif the specifiedindexis within the range of thelist; otherwise,false.
Type Parameters
TThe type of elements in the IList<T>.
Exceptions
- ArgumentNullException
listis null.