Method FindIndex
FindIndex(int, int, Predicate<TValue>)
Searches for an element that matches the conditions defined by the specified predicate, and returns the index of the first occurrence within the range
of elements in the list that starts at the specified index and contains the specified number of elements.
Declaration
public int FindIndex(int startIndex, int count, Predicate<TValue> match)
Parameters
Returns
FindIndex(int, Predicate<TValue>)
Searches for an element that matches the conditions defined by the specified predicate, and returns the index of the first occurrence within
the range of elements in the list that extends from the specified index to the last element.
Declaration
public int FindIndex(int startIndex, Predicate<TValue> match)
Parameters
Type |
Name |
Description |
int |
startIndex |
|
Predicate<TValue> |
match |
|
Returns
FindIndex(Predicate<TValue>)
Searches for an element that matches the conditions defined by the specified predicate, and returns the index of the first occurrence within the entire
list.
Declaration
public int FindIndex(Predicate<TValue> match)
Parameters
Type |
Name |
Description |
Predicate<TValue> |
match |
|
Returns