ListBaseTFindIndex Method (Int32, Int32, PredicateT) |
Finds the index of the first item, in the range of count items starting from 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 FindIndex(
int index,
int count,
Predicate<T> predicate
)
public:
virtual int FindIndex(
int index,
int count,
Predicate<T>^ predicate
)
Parameters
- index
- Type: SystemInt32
The starting index of the range to check. - count
- Type: SystemInt32
The number of items in range to check. - predicate
- Type: SystemPredicateT
A delegate that defined the condition to check for.
Return Value
Type:
Int32The index of the first item in the given range that satisfies the condition
predicate. If no item satisfies that
condition, -1 is returned.
See Also