static void Main(string[] args) { MyTimer.Create( () => { Console.WriteLine("hello"); }, 5000); Console.Read(); }
static void Main(string[] args) { MyTimer.Create( () => { Console.WriteLine("hello"); }, 5000); GC.Collect(); GC.WaitForPendingFinalizers(); Console.Read(); }