Click or drag to resize

OrderedDictionaryTKey, TValueIndexOfKey Method

Returns the zero-based index of the specified key in the OrderedDictionary<TKey,TValue>

Namespace:  Ifs.Fnd.Core
Assembly:  Ifs.Fnd.Core (in Ifs.Fnd.Core.dll) Version: 4.52.10.0 (10.2.2.9999)
Syntax
C#
public int IndexOfKey(
	TKey key
)

Parameters

key
Type: TKey
The key to locate in the OrderedDictionary<TKey,TValue>

Return Value

Type: Int32
The zero-based index of key, if key is found in the OrderedDictionary<TKey,TValue>; otherwise, -1
Remarks
This method performs a linear search; therefore it has a cost of O(n) at worst.
See Also