Is there any alternative way to perform the operation:
textWriter.Write(myBigObject.ToString())
such that:
myBigObjectis 'streamed' into the text representation without creating the whole string object in memory- there are no additional classes or objects used, beside
myBigObjectandtextWriter
Example: Imagine that myBigObject has 50 string fields. There is no point in joining all these fields in a big string and then writing the object to a file, if it is somehow possible to write the strings one by one to the file.