Attempts to deserialize a YAML payload into an explicit destination type.
public static bool TryDeserialize(string yaml, Type returnType, scoped out object? value, YamlSerializerOptions? options = null)
The YAML payload.
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.