ListExtensions.ItemAt<T>
Extension Method in ListExtensions
Declaration
public static T ItemAt<T>(this List<T> list, int index)Description
Returns the item at the specified index.
Type Parameters
| T | The type of the list. |
Parameters
| list | The list to get the item from. |
| index | The index of the item to get. |
Returns
| T | The item at the index, or default(T) if the list is empty. |