ReadOnlyListBaseTTryFindLast Method |
Finds the last item in the list that satisfies the condition
defined by predicate.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual bool TryFindLast(
Predicate<T> predicate,
out T foundItem
)
public:
virtual bool TryFindLast(
Predicate<T>^ predicate,
[OutAttribute] T% foundItem
)
Parameters
- predicate
- Type: SystemPredicateT
A delegate that defines the condition to check for. - foundItem
- Type: T
If true is returned, this parameter receives the last item in the list
that satifies the condition defined by predicate.
Return Value
Type:
BooleanTrue if an item that satisfies the condition
predicate was found. False
if no item in the list satisfies that condition.
See Also