📅  最后修改于: 2022-03-11 14:48:47.301000             🧑  作者: Mango
List TaskList = new List();
foreach(...)
{
var LastTask = new Task(SomeFunction);
LastTask.Start();
TaskList.Add(LastTask);
}
Task.WaitAll(TaskList.ToArray());