Attempts to deserialize a YAML payload into an explicit destination type using generated metadata from a serializer context.
public static bool TryDeserialize(string yaml, Type returnType, YamlSerializerContext context, scoped out object? value)
The YAML payload.
The destination CLR type.
The source-generated serializer context.
The deserialized value when successful; otherwise null.
true when deserialization succeeded; otherwise false.