PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Keyed­Collection<TKey, TItem>Index­Of­Item
Open sandboxFocus

AdvisableKeyedCollection<TKey, TItem>.IndexOfItem Method

IndexOfItem(TItem)

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

Declaration
protected override int IndexOfItem(TItem item)
Parameters
Type Name Description
TItem item
Returns
Type Description
System.Int32

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

Overrides
PostSharp.Patterns.Collections.AdvisableCollection<TItem>.IndexOfItem(TItem)