PostSharp//API Reference/Post­Sharp.​Patterns.​Collections/Advisable­Collection<T>/Index­Of
Open sandboxFocus

Method IndexOf

IndexOf(T)

Determines the index of a specific item in the IList<T>.

Declaration
public int IndexOf(T item)
Parameters
Type Name Description
T item

The object to locate in the IList<T>.

Returns
Type Description
Int32

The index of item if found in the list; otherwise, -1.