TArrayIterator<T>.IndexOf(T) Method

Determines the index of a specific item in the IReadOnlyList<T>.

Namespace: Spring.Collections.Extensions
public
 function IndexOf(const item: T): Integer; overload;

Parameters

item
Type: T

The object to locate in the IReadOnlyList<T>.

Return Value

Type: Integer

The index of item if found in the list; otherwise, -1.

Implements

IReadOnlyList<T>.IndexOf(T)