Collections.BinarySearch Collections.BinarySearch Method

Definition

Overloads

BinarySearch(IList, Object) BinarySearch(IList, Object)
BinarySearch(IList, Object, IComparator) BinarySearch(IList, Object, IComparator)

BinarySearch(IList, Object) BinarySearch(IList, Object)

[Android.Runtime.Register("binarySearch", "(Ljava/util/List;Ljava/lang/Object;)I", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static int BinarySearch (System.Collections.IList list, Java.Lang.Object key);
static member BinarySearch : System.Collections.IList * Java.Lang.Object -> int

Parameters

list
IList IList

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

BinarySearch(IList, Object, IComparator) BinarySearch(IList, Object, IComparator)

[Android.Runtime.Register("binarySearch", "(Ljava/util/List;Ljava/lang/Object;Ljava/util/Comparator;)I", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static int BinarySearch (System.Collections.IList list, Java.Lang.Object key, Java.Util.IComparator c);
static member BinarySearch : System.Collections.IList * Java.Lang.Object * Java.Util.IComparator -> int

Parameters

list
IList IList

Returns

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to