CultureAwareDynamicObject..::..TryGetValue Method

Gets the value associated with the specified key.

Namespace:  Tortuga.Anchor.Dynamic
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public bool TryGetValue(
	string key,
	out Nullable<Object> value
)
Public Function TryGetValue ( _
	key As String, _
	<OutAttribute> ByRef value As Nullable(Of Object) _
) As Boolean

Parameters

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

true if the object that implements [IDictionary{String, Object}] contains an element with the specified key; otherwise, false.