PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Collection(T) Class/Advisable­Collection(T) Methods/Advisable­Collection(T).​Index­Of Method

AdvisableCollection<T>.IndexOf Method

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

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public int IndexOf(
	T item
)

Parameters

item
Type: T
The object to locate in the IList<T>.

Return Value

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

Implements

IList<T>.IndexOf(T)
See Also