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

AdvisableCollection<T>.IndexOfItem Method

IndexOfItem(T)

Searches for the specified object and returns the zero-based index of the first occurrence within the entire underlying collection.

Declaration
protected virtual int IndexOfItem(T item)
Parameters
Type Name Description
T item

The object to locate in the AdvisableCollection<T>. The value can be null for reference types.

Returns
Type Description
Int32

The zero-based index of the first occurrence of item within the entire AdvisableCollection<T>, if found; otherwise, -1.