Attempts to deserialize YAML from a stream using UTF-8 encoding and an explicit destination type.
public static bool TryDeserialize(Stream utf8Stream, Type returnType, scoped out object? value, YamlSerializerOptions? options = null)
The source stream.
The destination CLR type.
The deserialized value when successful; otherwise null.
The serializer options. If null, Default is used.
true when deserialization succeeded; otherwise false.