- 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.
推薦閱讀
- 黑客攻防從入門到精通(實戰秘笈版)
- The Complete Rust Programming Reference Guide
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- Java程序設計與開發
- Building Modern Web Applications Using Angular
- C++ Builder 6.0下OpenGL編程技術
- Web交互界面設計與制作(微課版)
- Visual Basic程序設計(第3版):學習指導與練習
- GitLab Repository Management
- Julia for Data Science
- R用戶Python學習指南:數據科學方法
- Access 2010數據庫應用技術實驗指導與習題選解(第2版)
- 新印象:解構UI界面設計
- R語言:邁向大數據之路(加強版)
- 深度探索Go語言:對象模型與runtime的原理特性及應用