IReadOnlyList<T>.IndexOf(T) Method
Determines the index of a specific item in the IReadOnlyList<T>.
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.