Open sandboxFocus

Method IndexOfItem

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

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

Returns
Type Description
int

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

Overrides