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
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.