BorrowedList<TElement>.IndexOf(TElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.