|
Listing 16-11 extracted from chapter Base classes
Listing 16-10< > Listing 16-12
This listing can be compiled with the command line: csc.exe /target:exe Example_16_11.cs Errors: 0 Warnings: 0
Example_16_11.cs
using System.Diagnostics;
class Program {
static void Main() {
Trace.Listeners.Add( new ConsoleTraceListener() );
Trace.WriteLine( "Trace hello" );
for( int i=0; i<5; i++ )
Debug.WriteLineIf( i > 2, "debug i=" + i.ToString() );
}
}
Copyright Patrick Smacchia 2006 2007
|