« ToolBar button image tricks | Main | VB vs. C# Comparison »

Buffered Console.Out

using (StreamWriter bufferOutput = new StreamWriter(Console.OpenStandardOutput(1024))) {
    Console.SetOut(bufferOutput);
   
// ouput stuff.
} // Remaining buffered Console output flushed. What happens to Console.Out? Still valid?

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)