Deserialize(ReadOnlySpan, YamlSerializerOptions?) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Deserializes YAML from a span of characters.

public static T? Deserialize<T>(ReadOnlySpan<char> yaml, YamlSerializerOptions? options = null)

Type parameters

T
The destination CLR type.

Parameters

yaml
ReadOnlySpan<Char>

The YAML payload as a span.

options
YamlSerializerOptions

The serializer options. If null, Default is used.

Returns

{T}
The deserialized value.