KGy SOFT

VirtualCollectionTGetItemIndex Method

KGy SOFT Core Libraries Help
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.ObjectModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

protected virtual int GetItemIndex(
	T item
)

Parameters

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

Return Value

Type: Int32
The zero-based index of the found occurrence of item within the VirtualCollectionT, if found; otherwise, -1.
See Also

Reference