Serializes a value to a writer using an explicit input type.
public static void Serialize(TextWriter writer, object? value, Type inputType, YamlSerializerOptions? options = null)
The destination writer.
The value to serialize.
The declared input type.
The serializer options. If null, Default is used.