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

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
startIndexintÍndice desde el cual iniciar la búsqueda.
countintNúmero de elementos a examinar.
matchSystem::Predicate<T>Predicate para comprobar elementos con.

ReturnValue

Índice del elemento coincidente o -1 si no se encuentra.

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
startIndexintÍndice desde el cual iniciar la búsqueda.
matchSystem::Predicate<T>Predicate para comprobar elementos con.

ReturnValue

Índice del elemento coincidente o -1 si no se encuentra.

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

Índice del elemento coincidente o -1 si no se encuentra.

Ver también