StringKeyedDictionaryTValueContainsKey(String) Method

Determines whether the StringKeyedDictionaryTValue contains a specific key.

Definition

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

Parameters

key  String
The key to locate in the StringKeyedDictionaryTValue.

Return Value

Boolean
if the StringKeyedDictionaryTValue 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