Enumerable..::.LastOrDefault Method
This page is specific to:.NET Framework Version:3.5Silverlight 3
.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

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View