using System.Diagnostics;
Add 2 methods to class: [Conditional ("TRIAL")] public static void Remind() { Console.WriteLine("Please register your version!" ); Console.ReadLine(); }
and [Conditional ("FINAL")]
public static void Hello() { Console.WriteLine("Thanks for registration!"); Console.ReadLine(); }
Add to project properties -> Build -> Conditional compilation constants :
DEBUG;TRACE; TRIAL "COLOR: #ff0000">or DEBUG;TRACE; FINAL Compile and Run.
No comments:
Post a Comment