ListBaseTFindLastIndex Method (Int32, PredicateT) |
Finds the index of the last item, in the range of items extending from the beginning
of the list to index, that satisfies the condition
defined by predicate. If no item matches the condition, -1 is returned.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual int FindLastIndex(
int index,
Predicate<T> predicate
)
public:
virtual int FindLastIndex(
int index,
Predicate<T>^ predicate
)
Parameters
- index
- Type: SystemInt32
The ending index of the range to check. - predicate
- Type: SystemPredicateT
A delegate that defined the condition to check for.
Return Value
Type:
Int32The index of the last item in the given range that satisfies the condition
predicate. If no item satisfies that
condition, -1 is returned.
See Also