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.245-beta+94213ae9d4d0aa7a2c48e5398b12d267b99f868a
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