System::Array::FindIndex 메서드

Array::FindIndex method

지정된 배열에서 지정된 술어의 조건을 만족하는 첫 번째 요소를 검색합니다.

static int System::Array<T>::FindIndex(System::ArrayPtr<T> arr, System::Predicate<T> match)
매개변수형식설명
arrSystem::ArrayPtr<T>요소를 검색할 Array
일치System::Predicate<T>배열 요소와 일치시키기 위한 조건을 정의하는 프레디케이트

ReturnValue

프레디케이트가 정의한 조건을 만족하는 배열 내 첫 번째 요소의 인덱스, 만족하지 않으면 -1

또 보기