public void RunTask() { Task task = new Task(() => { Console.WriteLine("task with lambda"); }); task.Start(); task.Wait(); }