Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- class Test
- {
- static void Main()
- {
- Thread newThread = new Thread(new ThreadStart(Work.DoWork));
- newThread.Start();
- }
- }
- class Work
- {
- Work() {}
- public static void DoWork() {}
- }
- ThreadPool.QueueUserWorkItem(delegate { SendMail(message); });
Add Comment
Please, Sign In to add comment