摘要:
一、以下代码共创建了几个Task实例?var tasks = Enumerable.Range(1, 2).Select(i => new Task(() =>{ Debug.WriteLine(i);})).ToList();var ts1 = tasks.ToList();var ts2 = tasks.ToArray();二、找错误:var tasks = Enumerable.Range(1, 2).Select(i => new Task(() =>{ Debug.WriteLine(i);}));tasks.ToList().ForEach(t => 阅读全文