LINQ_ElementAtOrDefault()

IEnumerable::LINQ_ElementAtOrDefault(int) method

Returns the element at a specified index in a sequence.

T System::Collections::Generic::IEnumerable<T>::LINQ_ElementAtOrDefault(int index)

Arguments

ParameterTypeDescription
indexintIndex to get element at.

Return Value

Element at specified index or default-constructed value if not found.

See Also