Sage Modeling and Simulation Library

HashtableOfLists<(Of <(<'TKey, TValue>)>)>..::..TryGetValue Method

Gets the value associated with the specified key.

Namespace:  Highpoint.Sage.Utility
Assembly:  Sage4 (in Sage4.dll)

Syntax


public bool TryGetValue(
	TKey key,
	out List<TValue> value
)

Parameters

key
Type: TKey
The key whose value to get.
value
Type: List<(Of <(<'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

true if the object that implements IDictionary contains an element with the specified key; otherwise, false.