static void Main() { Timer timer = new Timer(5); timer.SomeMethods += FirstTestMethod; timer.SomeMethods += SecondTestMethod; timer.ExecuteMethods(); }
static void Main() { Timer timer = new Timer(3); timer.Method = PrintTimeNow; timer.ExecuteMethods(); }
static void Main(string[] args) { Timer timer = new Timer(2); timer.AllMethods += SaySomething; timer.AllMethods += ILoveYou; timer.ExecuteMethods(); }