CacheTKey, TValueContainsKey Method

Determines whether the CacheTKey, TValue contains a specific key.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public bool ContainsKey(
	TKey key
)

Parameters

key  TKey
The key to locate in the CacheTKey, TValue.

Return Value

Boolean
if the CacheTKey, TValue contains an element with the specified key; otherwise, .

Implements

IDictionaryTKey, TValueContainsKey(TKey)
IReadOnlyDictionaryTKey, TValueContainsKey(TKey)

Remarks

This method approaches an O(1) operation.

Exceptions

See Also