Click or drag to resize
Accord.NET (logo)

NpzDictionaryTTryGetValue Method

Gets the value that is associated with the specified key.

Namespace:  Accord.IO
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.7.0
Syntax
public bool TryGetValue(
	string key,
	out T value
)
Request Example View Source

Parameters

key
Type: SystemString
The key to locate.
value
Type: T
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

Type: Boolean
true if the object that implements the IReadOnlyDictionaryTKey, TValue interface contains an element that has the specified key; otherwise, false.
See Also