class Program { static void Main(string[] args) { Task t = new Task(() => { int i = 0; for (i = 0; i < 100; i++) { Console.WriteLine("*"); } }); t.Wait(); } }
t.Start()
// code to define task here t.Start(); t.Wait();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)