#define TRIAL
using System;
using System.Diagnostics;
class MainClass {
[Conditional("TRIAL")]
void trial() {
Console.WriteLine("Trial version, not for distribution.");
}
[Conditional("RELEASE")]
void release() {
Console.WriteLine("Final release version.");
}
public static void Main() {
MainClass t = new MainClass();
t.trial(); // call only if TRIAL is defined
t.release(); // called only if RELEASE is defined
}
}
|