Categories
Etc

A TraceListener that writes to the Console

I keep writing this class over and over.  It’s quite handy.

class ConsoleWriter : System.Diagnostics.TraceListener {
  public override void Write(string message) {
    Console.Write(message);
  }
  public override void WriteLine(string message) {
    Console.WriteLine(message);
  }
}

Advertisements