static void Main(string[] args)
{
string x = string.Empty;
Task t = new Task(() => {
x = "dd";
});
Task<int> cT = t.ContinueWith<int>(gg => {
return 23;
});
t.Start();
Console.WriteLine(cT.Result);
Console.ReadLine();
}
结果:23。是的我想要。所以,我可以说所有任务在 C# 中都有父任务,对吗?