System::Collections::Generic::IEnumerable::LINQ_LastOrDefault method

IEnumerable::LINQ_LastOrDefault method

Returns the last element of a sequence, or a default value if the sequence is empty.

T System::Collections::Generic::IEnumerable<T>::LINQ_LastOrDefault()

ReturnValue

Last element in the sequence or default-constructed value if the sequence is empty.

See Also