LINQ_LastOrDefault()

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()

Return Value

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

See Also