KGy SOFT

CacheTKey, TValueContainsKey Method

KGy SOFT Core Libraries Help

Namespace:  KGySoft.Collections
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

public bool ContainsKey(
	TKey key
)

Parameters

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

Return Value

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

Implements

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

ExceptionCondition
ArgumentNullExceptionkey is .
Remarks

This method approaches an O(1) operation.

See Also

Reference