ParallelEnumerable.LastOrDefault<'TSource> Method (ParallelQuery<'TSource>, Func<'TSource, Boolean>)
Returns the last element of a parallel sequence that satisfies a condition, or a default value if no such element is found.
Assembly: System.Core (in System.Core.dll)
static member LastOrDefault<'TSource> : source:ParallelQuery<'TSource> * predicate:Func<'TSource, bool> -> 'TSource
The sequence to return an element from.
default() if the sequence is empty or if no elements pass the test in the predicate function; otherwise, the last element that passes the test in the predicate function.
The type of the elements of source.
If the query is not ordered, then the last element is non-deterministic. For more information, see Order Preservation in PLINQ.
Available since 4.5
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1