طريقة System::Collections::Generic::List::BinarySearch

List::BinarySearch(const T&) const method

يبحث عن العنصر في قائمة مرتبة.

int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
ParameterTypeالوصف
العنصرconst T&العنصر للبحث عنه.

ReturnValue

فهرس العنصر في القائمة المرتبة أو مكمل أقرب فهرس.

انظر أيضًا

List::BinarySearch(const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method

يبحث عن العنصر في قائمة مرتبة.

int System::Collections::Generic::List<T>::BinarySearch(const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
ParameterTypeالوصف
العنصرconst T&العنصر للبحث عنه.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer للاستخدام.

ReturnValue

فهرس العنصر في القائمة المرتبة أو مكمل أقرب فهرس.

انظر أيضًا

List::BinarySearch(int, int, const T&, const SharedPtr<System::Collections::Generic::IComparer<T>>&) const method

يبحث عن العنصر في قائمة مرتبة.

int System::Collections::Generic::List<T>::BinarySearch(int index, int count, const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
ParameterTypeالوصف
الفهرسintبداية النطاق.
countintحجم النطاق.
العنصرconst T&العنصر للبحث عنه.
comparerconst SharedPtr<System::Collections::Generic::IComparer<T>>&Comparer للاستخدام.

ReturnValue

فهرس العنصر في القائمة المرتبة أو مكمل أقرب فهرس.

انظر أيضًا