Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0-rc.1
protected override int GetItemIndex( T item )
Protected Overrides Function GetItemIndex ( item As T ) As Integer
protected: virtual int GetItemIndex( T item ) override
abstract GetItemIndex : item : 'T -> int override GetItemIndex : item : 'T -> int
Return ValueType: Int32
The zero-based index of the found occurrence of item within the FastLookupCollectionT, if found; otherwise, -1.
In FastLookupCollectionT this method has an O(n) cost for the first time or then the internal mapping has to be rebuilt (because, for example, CheckConsistency is and inconsistency is detected); otherwise, it has an O(1) cost. Inconsistency can happen if the underlying collection has been modified directly instead of accessing it only via this instance.