-
Notifications
You must be signed in to change notification settings - Fork 26
Last
Eugene Sadovoi edited this page Jul 7, 2016
·
1 revision
Returns the last element of a sequence that satisfies a specified condition.
Last([predicate])
A function to test each element for a condition: Boolean predicate(TSource)
The last element in the sequence that passes the test in the specified predicate function.
The Last method throws an exception if no matching element is found in source. To instead return a default value when no matching element is found, use the LastOrDefault method.