W
Will Chapman
I found the following example on MSDN but
when I try to run it in CF I get a load of
errors:
using System;
using System.Diagnostics;
class Test
{
static void Main()
{
Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
Trace.AutoFlush = true;
Trace.Indent();
Trace.WriteLine("Entering Main");
Console.WriteLine("Hello World.");
Trace.WriteLine("Exiting Main");
Trace.Unindent();
}
}
Typical errors are:
error CS0117: 'System.Diagnostics.Trace' does not contain a definition
for 'AutoFlush
Any ideas what I am missing?
Thanks
Will Chapman
when I try to run it in CF I get a load of
errors:
using System;
using System.Diagnostics;
class Test
{
static void Main()
{
Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
Trace.AutoFlush = true;
Trace.Indent();
Trace.WriteLine("Entering Main");
Console.WriteLine("Hello World.");
Trace.WriteLine("Exiting Main");
Trace.Unindent();
}
}
Typical errors are:
error CS0117: 'System.Diagnostics.Trace' does not contain a definition
for 'AutoFlush
Any ideas what I am missing?
Thanks
Will Chapman