Deserialize(TextReader, Type, YamlSerializerOptions?) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Deserializes YAML from a text reader using an explicit destination type.

public static object? Deserialize(TextReader reader, Type returnType, YamlSerializerOptions? options = null)

Parameters

reader
TextReader

The source reader.

returnType
Type

The destination CLR type.

options
YamlSerializerOptions

The serializer options. If null, Default is used.

Returns

Object
The deserialized value.