In my C# .NET application I have an issue with the Trace.WriteLine()-method. I uses this method alot, and want to add a TimeStamp every time I use it.
Instead of Tra
You could write a wrapper method that did it:
public static void DoTrace(string message) { DoTrace(message,true); } public static void DoTrace(string message, bool includeDate) { if (includeDate) { Trace.WriteLine(DateTime.Now + ": " + message); } else { Trace.WriteLine(message); } }