Deserialize(String, YamlTypeInfo) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Deserializes a payload using explicit type metadata.

public static T? Deserialize<T>(string yaml, YamlTypeInfo<T> typeInfo)

Type parameters

T
The represented CLR type.

Parameters

yaml
String

The YAML payload.

typeInfo
YamlTypeInfo<T>

The metadata used for deserialization.

Returns

{T}
The deserialized value.