VirtualCollectionTGetItemIndex Method

Gets the zero-based index of an occurrence of the specified item within the VirtualCollectionT.
The base implementation calls the IndexOf method of the underlying collection.

Definition

Namespace: KGySoft.Collections.ObjectModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
protected virtual int GetItemIndex(
	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 VirtualCollectionT, if found; otherwise, -1.

See Also