Closed inyutin-maxim closed 6 years ago
Frankly, I don't think that's a good idea.
Where does this idea come from if I may ask?
If to look at a code in Readme.md you create MarkdownWriter object the task of which only to write, and it seems to me obvious that all its methods are engaged in the fact that they write data
var sb = new StringBuilder();
using (MarkdownWriter writer = MarkdownWriter.Create(sb))
{
writer.WriteHeading1("Markdown Sample");
/// ...
writer.WriteHorizontalRule();
}
"...Writer" class with "Write..." methods is very standardized pattern that I intend to use.
Ok, thanks. Also many thanks for Roslynator
I'm glad you like it.
Perhaps the prefix "Write" for methods of an object MarkdownWriter is superfluous?