Ref: Eric Lippert's Blog
class Program
{
#if DEBUG
static int testCounter = 0;
#endif
static void Main(string[] args)
{
SomeTestMethod(testCounter++);
}
[Conditional("DEBUG")]
static void SomeTestMethod(int t) { }
}
Derlemede çalışan ama sürümde çalışmayan satırlar için.