Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- new Timer(TimerCallback, null, 1, 1000);
- Console.ReadKey();
- }
- static void TimerCallback(object state)
- {
- Console.WriteLine("TimerCallback");
- GC.Collect();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement