KGy SOFT

CircularSortedListTKey, TValueIndexOfKey Method

KGy SOFT Core Libraries Help

Namespace:  KGySoft.Collections
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
Syntax

public int IndexOfKey(
	TKey key
)

Parameters

key
Type: TKey
The key to locate in the CircularSortedListTKey, TValue.

Return Value

Type: Int32
The zero-based index of key within the entire CircularSortedListTKey, TValue, if found; otherwise, -1.
Exceptions

ExceptionCondition
ArgumentNullExceptionkey is .
Remarks

This method performs a binary search; therefore, this method is an O(log n) operation, where n is Count.
See Also

Reference