forEach()
遍历List中的每一个元素
List<int> list [19, 20, 12];
list.forEach((f) > print($f is ${f > 18 ? bigger : smaller} than 18));打印结果
19 is bigger than 18
20 is bigger than 18
12 is smaller than 18map()
map方法也是遍历List中的每一…
在Startup.cs文件的Configuration中增加代码:System.Threading.Thread.CurrentThread.CurrentUICulture new System.Globalization.CultureInfo("zh-CN");
public void Configuration(IAppBuilder app)
{System.Threading.Thread.CurrentThread.Current…