官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 呼伦贝尔市| 留坝县| 塔河县| 隆昌县| 肃南| 泰州市| 文成县| 商都县| 礼泉县| 龙岩市| 西丰县| 永清县| 永昌县| 凤冈县| 边坝县| 宝鸡市| 墨玉县| 平泉县| 保德县| 黄山市| 昌宁县| 桐庐县| 剑阁县| 永年县| 龙海市| 习水县| 望都县| 泗阳县| 依兰县| 开阳县| 文化| 开封市| 安多县| 桂阳县| 奉节县| 崇左市| 榕江县| 台东市| 伊通| 和硕县| 吴堡县|