Click or drag to resize

OrderedDictionaryTKey, TValueIndexOf Method

Returns the zero-based index of the element with the specified key within the OrderedDictionaryTKey, TValue as an O(1) operation.

Namespace: GSF.Collections
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public int IndexOf(
	TKey key
)
View Source

Parameters

key  TKey
The key of the element to locate.

Return Value

Int32
The zero-based index of the element with the specified key within the OrderedDictionaryTKey, TValue, if found; otherwise, -1.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
See Also