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

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.

主站蜘蛛池模板: 娄底市| 景宁| 香格里拉县| 高平市| 日喀则市| 宣威市| 怀宁县| 长治县| 宝丰县| 中阳县| 会昌县| 泊头市| 高唐县| 闸北区| 尼玛县| 潜山县| 黄平县| 虹口区| 平南县| 德昌县| 新营市| 依安县| 滦平县| 晋中市| 肥西县| 鞍山市| 杨浦区| 永清县| 孟连| 搜索| 岗巴县| 洛川县| 广州市| 深圳市| 夏津县| 阿拉善右旗| 遂昌县| 榆树市| 上犹县| 北京市| 黎川县|