TryGetValue Method
Gets the value associated with the specified key.
Syntax
public System.bool TryGetValue(
KeyType key,
out ValueType value
)Public Function TryGetValue( _
ByVal key As KeyType, _
ByRef value As ValueType _
) As System.BooleanParameters
| Name | Description |
|---|---|
| key | The key whose value to get. |
| value | 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 Dictionary contains an element with the specified key; otherwise, false
Remarks
If the value associtead with the key is a Function, then the function will be evaluated and it's result will be returned