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.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
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