- 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.
推薦閱讀
- Puppet 4 Essentials(Second Edition)
- Instant Testing with CasperJS
- R語言數據分析從入門到精通
- Docker and Kubernetes for Java Developers
- Oracle Database In-Memory(架構與實踐)
- C#完全自學教程
- 青少年軟件編程基礎與實戰(圖形化編程三級)
- Scratch 3.0少兒編程與邏輯思維訓練
- C/C++常用算法手冊(第3版)
- PHP+Ajax+jQuery網站開發項目式教程
- Python語言實用教程
- C語言從入門到精通
- C語言程序設計
- Learning Material Design
- Access 2010數據庫應用技術實驗指導與習題選解(第2版)