Bridge

List<(Of <(<'T>)>)>..::..IndexOf Method (T, Int32)

Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the List<(Of <(<'T>)>)> that extends from the specified index to the last element.

Namespace:  System.Collections.Generic
Assembly:  Bridge (in Bridge.dll)

Syntax


public int IndexOf(
	T item,
	int startIndex
)
Public Function IndexOf ( _
	item As T, _
	startIndex As Integer _
) As Integer
public:
int^ IndexOf(
	T item, 
	int^ startIndex
)

Parameters

item
Type: T
The object to locate in the List<(Of <(<'T>)>)>. The value can be null for reference types.
startIndex
Type: System..::..Int32

Return Value

The zero-based index of the first occurrence of item within the range of elements in the List<(Of <(<'T>)>)> that extends from index to the last element, if found; otherwise, –1.

Exceptions


ExceptionCondition
System..::..ArgumentOutOfRangeExceptionindex is outside the range of valid indexes for the List<(Of <(<'T>)>)>.