Deserialize(ReadOnlySpan, YamlTypeInfo) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Deserializes a payload using explicit type metadata from a character span.

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

Type parameters

T
The represented CLR type.

Parameters

yaml
ReadOnlySpan<Char>

The YAML payload as a span.

typeInfo
YamlTypeInfo<T>

The metadata used for deserialization.

Returns

{T}
The deserialized value.