Método System::Collections::Generic::List::FindIndex

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

Busca un elemento que cumpla un predicado específico.

int System::Collections::Generic::List<T>::FindIndex(int startIndex, int count, System::Predicate<T> match)
ParámetroTipoDescripción
startIndexintIndex desde donde iniciar la búsqueda.
countintNúmero de elementos a examinar.
matchSystem::Predicate<T>Predicate para comprobar elementos con.

ReturnValue

Index of matching element or -1 if not found.

Ver también

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

Busca un elemento que cumpla un predicado específico.

int System::Collections::Generic::List<T>::FindIndex(int startIndex, System::Predicate<T> match)
ParámetroTipoDescripción
startIndexintIndex desde donde iniciar la búsqueda.
matchSystem::Predicate<T>Predicate para comprobar elementos con.

ReturnValue

Index of matching element or -1 if not found.

Ver también

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

Busca un elemento que cumpla un predicado específico.

int System::Collections::Generic::List<T>::FindIndex(System::Predicate<T> match)
ParámetroTipoDescripción
matchSystem::Predicate<T>Predicate para comprobar elementos con.

ReturnValue

Index of matching element or -1 if not found.

Ver también