ArrayExtensions.ElementAt<T>
Extension Method in ArrayExtensions
Declaration
public static T ElementAt<T>(this T[] array, int index)Description
Returns the element at the specified index.
Type Parameters
| T | The type of the array. |
Parameters
| array | The array to search in. |
| index | The index of the element to return. |
Returns
| T | The element at the specified index, or default(T) if the array is empty. |