1

Closed

Use TextWriter in template

description

Currently the Write() method can be used to write text into the TextWriter. However, the Write() method only supports strings or objects. It might be helpful to pass the TextWriter to an external object so that it can write its output directly into the stream.
 
Currently:
Write(myObject.BuildComplexText.()); // BuildComplexText() returns a string.
 
New:
myObject.BuildComplexText(Output); // Use TextWriter in method call.
Closed Jul 30, 2012 at 9:49 AM by olafmeyer

comments