Tuesday, October 12, 2010

ThreadStart snippet


using System.Threading;
Thread thread = new Thread(
 new ThreadStart(() =>
  {
   // do stuff
  }));
thread.Start();
Snippet for creating separate thread inline and starting it.

1 comment: