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.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
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