Method FindIndex
FindIndex(Func<T, Boolean>)
Check if there exists an item that satisfies a specific predicate in this collection and return the index of the first one.
Declaration
int FindIndex(Func<T, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<T, System.Boolean> | predicate | A delegate (Func<, > with ) defining the predicate
|
Returns
Type | Description |
---|---|
System.Int32 | the index, if found, a negative value else |