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

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.

主站蜘蛛池模板: 明光市| 怀来县| 高碑店市| 固镇县| 岫岩| 海口市| 高清| 芜湖县| 忻城县| 商洛市| 确山县| 共和县| 汶上县| 石渠县| 米脂县| 滦平县| 内丘县| 洪洞县| 崇义县| 项城市| 泰安市| 东丽区| 基隆市| 秀山| 大化| 鲁甸县| 姚安县| 威远县| 榕江县| 古丈县| 从化市| 扬州市| 曲麻莱县| 临朐县| 常熟市| 永胜县| 桓台县| 东丰县| 马龙县| 靖边县| 武强县|