任务有返回值例子: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Demo { class Program { static void Main(string[] args) { System.Threading.Tasks.Task<string> task = Task.Factory.…