AdvisableCollection<T>.IndexOfItem Method |
Searches for the specified object and returns the zero-based index of the first occurrence within the entire underlying collection.
Namespace: PostSharp.Patterns.CollectionsAssembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)

C#
protected virtual int IndexOfItem( T item )
Parameters
- item
- Type: T
The object to locate in the AdvisableCollection<T>. The value can be null for reference types.
Return Value
Type: Int32The zero-based index of the first occurrence of item within the entire AdvisableCollection<T>, if found; otherwise, -1.
