using System using System Diagnostics static class Program Conditional

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
using System;
using System.Diagnostics;
static class Program
{
[Conditional("DEBUG")]
static void Debug(string format, params object[] args)
{
Console.WriteLine(string.Format(format, args));
}
static void Main()
{
Debug("Holy shmoly...");
}
}