摘要: 一、以下代码共创建了几个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 => 阅读全文
posted @ 2012-11-29 11:48 beta2013 阅读(151) 评论(0) 推荐(0) 编辑