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.
Namespace: KGySoft.Collections.ObjectModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
protected virtual int GetItemIndex(
T item
)
Protected Overridable Function GetItemIndex (
item As T
) As Integer
protected:
virtual int GetItemIndex(
T item
)
abstract GetItemIndex :
item : 'T -> int
override GetItemIndex :
item : 'T -> int
- item T
- The object to locate in the VirtualCollectionT. The value can be for reference types.
Int32The zero-based index of the found occurrence of
item within the
VirtualCollectionT, if found; otherwise,
-1.