- Beginning C# 7 Hands-On:Advanced Language Features
- Tom Owsiak
- 70字
- 2021-07-02 15:29:27
Performing an action on all of the values
Now, one thing that you can do is to perform an action on all the values. So, the way to do that is to enter the following:
vals.ForEach(ShowSquare);
This is how you can call ShowSquare on each value. Notice that, in this case, ShowSquare is named. ShowSquare represents this expression, sampLabel.Text += "<br>" + (x * x); so it's a named quantity.
推薦閱讀
- Learn ECMAScript(Second Edition)
- Qt 5 and OpenCV 4 Computer Vision Projects
- 算法精粹:經典計算機科學問題的Java實現
- Visual Basic程序設計教程
- Learning SQLite for iOS
- 用Python實現深度學習框架
- H5頁面設計:Mugeda版(微課版)
- Learning OpenStack Networking(Neutron)
- ExtJS高級程序設計
- SQL Server數據庫管理與開發兵書
- Mastering SciPy
- C語言程序設計實驗指導
- Kotlin程序員面試算法寶典
- Go語言編程之旅:一起用Go做項目
- 大話統計學(溢彩實訓版):基于R語言+中文統計工具