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

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.

主站蜘蛛池模板: 从化市| 电白县| 普安县| 安康市| 五华县| 秀山| 阳山县| 中西区| 湘阴县| 穆棱市| 太白县| 龙口市| 银川市| 兴城市| 宣恩县| 无为县| 珠海市| 平舆县| 弥勒县| 陇南市| 科技| 连山| 丰宁| 广宁县| 临武县| 巫山县| 万州区| 丘北县| 迁西县| 大同市| 徐水县| 波密县| 卫辉市| 东宁县| 康马县| 嘉祥县| 泾川县| 胶州市| 平舆县| 湟源县| 阿拉善右旗|