CollectionUtilities..::..IndexOf<(Of <(<'T>)>)> Method

Locates the index of the indicated item.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static int IndexOf<T>(
	IReadOnlyList<T> list,
	T item
)
Public Shared Function IndexOf(Of T) ( _
	list As IReadOnlyList(Of T), _
	item As T _
) As Integer

Type Parameters

T

Parameters

list
Type: IReadOnlyList<(Of <(<'T>)>)>
The list.
item
Type: T
The item.

Return Value

System.Int32.

Exceptions


ExceptionCondition
[ArgumentNullException]list