Deserialize(String, Type, YamlSerializerOptions?) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Deserializes a YAML payload into an explicit destination type.

public static object? Deserialize(string yaml, Type returnType, YamlSerializerOptions? options = null)

Parameters

yaml
String

The YAML payload.

returnType
Type

The destination CLR type.

options
YamlSerializerOptions

The serializer options. If null, Default is used.

Returns

Object
The deserialized value.