MarkdownWriter Constructor
- Namespace
- Kampute.DocToolkit.IO.Writers
- Assembly
- Kampute.DocToolkit.dll
Definition
Initializes a new instance of the MarkdownWriter class.
public MarkdownWriter(TextWriter writer, bool leaveOpen = false)Parameters
writerTextWriter- The TextWriter to write the Markdown content to.
leaveOpenbool optional- A value indicating whether the underlying writer should be left open when the MarkdownWriter is disposed.
Exceptions
- ArgumentNullException
- Thrown when
writerisnull.

leaveOpenistrue, the underlying TextWriter remains open after the MarkdownWriter is disposed. This is useful when managing the writer externally.