AlgorithmsFindFirstIndexWhereT Method |
Finds the index of the first item in a 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 static int FindFirstIndexWhere<T>(
IList<T> list,
Predicate<T> predicate
)
public:
generic<typename T>
static int FindFirstIndexWhere(
IList<T>^ list,
Predicate<T>^ predicate
)
Parameters
- list
- Type: System.Collections.GenericIListT
The list to search. - predicate
- Type: SystemPredicateT
A delegate that defined the condition to check for.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.FindFirstIndexWhere``1(System.Collections.Generic.IList{``0},System.Predicate{``0})"]
Return Value
Type:
Int32The index of the first item satisfying the condition. -1 if no such item exists in the list.
See Also