public static void Main(string[] args) { TimerDelegate timerDelegate = new TimerDelegate(5, test); }
// Constructor public Timer(TimerDelegate timerDelegate, int timesOfExecute, int intervalOfMilliseconds) { this.timerDelegate = timerDelegate; this.timesOfExecute = timesOfExecute; this.intervalOfMilliseconds = intervalOfMilliseconds; }