CommandStateTryGetValue Method

Gets the state element associated with the specified key.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public bool TryGetValue(
	string key,
	out Object?? value
)

Parameters

key  String
The key whose value to get.
value  Object
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

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

Implements

IReadOnlyDictionaryTKey, TValueTryGetValue(TKey, TValue)
IDictionaryTKey, TValueTryGetValue(TKey, TValue)

See Also