编译此代码: var arr = new[] { 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 }; arr.ForEach(x => { Console.WriteLine(x); });失败:error CS7036: There is no argument given that corresponds to the required formal parameter 'action' of 'Array.ForEach<T>(T[], Action<T>)'为什么?
- 1 回答
- 0 关注
- 161 浏览
添加回答
举报
0/150
提交
取消