Language

JavaArray<T>.IndexOf(T) Method

Definition

Searches a managed copy of the Java array for an item.

public int IndexOf(T item);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int

Parameters

item
T

The item to find.

Returns

The index of the first matching item, or -1 if it is not found.

Implements

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