VirtualCollectionTIndexOf Method

Searches for the specified object and returns the zero-based index of an occurrence within the entire VirtualCollectionT.
Calls the overridable GetItemIndex method.

Definition

Namespace: KGySoft.Collections.ObjectModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public int IndexOf(
	T item
)

Parameters

item  T
The object to locate in the VirtualCollectionT. The value can be for reference types.

Return Value

Int32
The zero-based index of the found occurrence of item within the entire VirtualCollectionT, if found; otherwise, -1.

Implements

IListTIndexOf(T)

See Also