Initializes a new instance of the YamlWriter class that writes directly to a StringBuilder.
public YamlWriter(StringBuilder stringBuilder, YamlSerializerOptions? options = null)
The destination string builder.
The serializer options used for formatting.