Initializes a new instance of the YamlWriter class.
public YamlWriter(TextWriter writer, YamlSerializerOptions? options = null)
The destination writer.
The serializer options used for formatting.