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
Posted in Etc
%d bloggers like this: