Language

JavaArray<T>.IList.IndexOf(Object) Method

Definition

Searches for an object compatible with the managed element type.

int IList.IndexOf(object? value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int

Parameters

value
Object

The object to test against the managed element type and typed search.

Returns

The typed search result if value is T; otherwise, -1. A null value also returns -1.

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