System::Collections::Generic::List::FindIndex method

List::FindIndex(int, int, System::Predicate<T>) method

Looks for element adhering to specific predicate.

int System::Collections::Generic::List<T>::FindIndex(int startIndex, int count, System::Predicate<T> match)
ParameterTypeDescription
startIndexintIndex to start search from.
countintNumber of elements to look through.
matchSystem::Predicate<T>Predicate to check elements with.

ReturnValue

Index of matching element or -1 if not found.

See Also

List::FindIndex(int, System::Predicate<T>) method

Looks for element adhering to specific predicate.

int System::Collections::Generic::List<T>::FindIndex(int startIndex, System::Predicate<T> match)
ParameterTypeDescription
startIndexintIndex to start search from.
matchSystem::Predicate<T>Predicate to check elements with.

ReturnValue

Index of matching element or -1 if not found.

See Also

List::FindIndex(System::Predicate<T>) method

Looks for element adhering to specific predicate.

int System::Collections::Generic::List<T>::FindIndex(System::Predicate<T> match)
ParameterTypeDescription
matchSystem::Predicate<T>Predicate to check elements with.

ReturnValue

Index of matching element or -1 if not found.

See Also