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.218-beta+101eee949414e414795e55a6e73d88938f0177b8
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