Deserialize(ReadOnlySpan, Type, YamlSerializerOptions?) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Deserializes YAML from a span of characters using an explicit destination type.

[Obsolete("ReadOnlySpan<char> overloads copy the input; use the string or TextReader overload instead.", false)]
public static object? Deserialize(ReadOnlySpan<char> yaml, Type returnType, YamlSerializerOptions? options = null)

Parameters

yaml
ReadOnlySpan<Char>

The YAML payload as a span.

returnType
Type

The destination CLR type.

options
YamlSerializerOptions

The serializer options. If null, Default is used.

Returns

Object
The deserialized value.