 | DictionarySerializationContextTryDeserializeT Method (DictionaryString, Object, String) |
Tries to deserialize the value with the specified key in the specified data dictionary.
If the key is not found, the default value of the specified type is returned.
Namespace: Slash.Serialization.DictionaryAssembly: Slash.Serialization (in Slash.Serialization.dll) Version: 1.0.6018.40176
Syntaxpublic T TryDeserialize<T>(
Dictionary<string, Object> data,
string key
)
Public Function TryDeserialize(Of T) (
data As Dictionary(Of String, Object),
key As String
) As T
public:
generic<typename T>
T TryDeserialize(
Dictionary<String^, Object^>^ data,
String^ key
)
member TryDeserialize :
data : Dictionary<string, Object> *
key : string -> 'T
Parameters
- data
- Type: System.Collections.GenericDictionaryString, Object
Data dictionary which contains value. - key
- Type: SystemString
Key of value in data dictionary.
Type Parameters
- T
- Type of value to deserialize.
Return Value
Type:
TDeserialized value if found; otherwise, default value of specified type.
See Also