Deserialize(ReadOnlySpan, Type, YamlSerializerContext) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Deserializes YAML from a span of characters using an explicit destination type and generated metadata from a serializer context.

public static object? Deserialize(ReadOnlySpan<char> yaml, Type returnType, YamlSerializerContext context)

Parameters

yaml
ReadOnlySpan<Char>

The YAML payload as a span.

returnType
Type

The destination CLR type.

context
YamlSerializerContext

The source-generated serializer context.

Returns

Object
The deserialized value.