Dela via


BorrowedList<TElement>.IndexOf(TElement) Method

Definition

Returns the first index of item in the BorrowedList<TElement> or -1 if item is not found.

public int IndexOf (TElement item);
abstract member IndexOf : 'Element -> int
override this.IndexOf : 'Element -> int
Public Function IndexOf (item As TElement) As Integer

Parameters

item
TElement

The value to search for.

Returns

The first index of item in the BorrowedList<TElement> or -1 if item is not found

Implements

Remarks

This method uses Default to compare elements.

Applies to