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
public int FindIndex(Func<T, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<T, System.Boolean> | predicate | A delegate defining the predicate |
Returns
Type | Description |
---|---|
System.Int32 | the index, if found, a negative value else |