PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Collection<T>Index­Of
Open sandboxFocus

AdvisableCollection<T>.IndexOf Method

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.