using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace ImplementingTimers { class Program { static void TimedMethod(Object stateInfo) { Console.WriteLine("Executed"); } static void Main(string[] args) { TimerCallback timerDelegate = new TimerCallback(TimedMethod); Timer stateTimer = new Timer(timerDelegate, null, 10000, 1000); //stateTimer.Start(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)