編譯此代碼: var arr = new[] { 1, 3, 5, 7, 9, 11, 13, 15, 17, 19 }; arr.ForEach(x => { Console.WriteLine(x); });失?。篹rror CS7036: There is no argument given that corresponds to the required formal parameter 'action' of 'Array.ForEach<T>(T[], Action<T>)'為什么?
- 1 回答
- 0 關(guān)注
- 181 瀏覽
添加回答
舉報
0/150
提交
取消