Deserialize(Stream, YamlTypeInfo) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Deserializes a payload from a stream using UTF-8 encoding and explicit type metadata.

public static T? Deserialize<T>(Stream utf8Stream, YamlTypeInfo<T> typeInfo)

Type parameters

T
The represented CLR type.

Parameters

utf8Stream
Stream

The source stream.

typeInfo
YamlTypeInfo<T>

The metadata used for deserialization.

Returns

{T}
The deserialized value.