Why does XmlWriter's create methods have output parameters?
For example (from MSDN)
public static XmlWriter Create( StringBuilder output, XmlWriterSettings settings ) output Type: System.Text.StringBuilder The StringBuilder to which to write to. Content written by the XmlWriter is appended to the StringBuilder.
Why doesn't create not take the StringBuilder and instead of
toStringBuilder if thats whats really wanted.
I'm not asking how to use XmlWriter, I'm trying to understand the reasoning why it was constructed this way. I assume there is a reason, or even it to be a known pattern with advantages and disadvantages, I'd like to know more about this