.NET Framework Class Library
Enumerable..::.LastOrDefault Method

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

Overload List

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLastOrDefault<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>))Returns the last element of a sequence, or a default value if the sequence contains no elements.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLastOrDefault<(Of <(TSource>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Boolean>)>))Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.
Top
See Also

Reference

Tags :


Page view tracker