Click or drag to resize

ListDictionaryTKey, TValueTryGetValue Method

Gets the value that is associated with the specified key.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public bool TryGetValue(
	TKey key,
	out TValue value
)

Parameters

key  TKey
The key to locate.
value  TValue
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 object that implements the IReadOnlyDictionaryTKey, TValue interface contains an element that has the specified key; otherwise, .

Implements

IReadOnlyDictionaryTKey, TValueTryGetValue(TKey, TValue)
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is .
See Also