using System; namespace Core.Util { /// <summary> /// 循环帮助类 /// </summary>
public class LoopHelper { /// <summary> /// 循环指定次数 /// </summary> /// <param
name="count">循环次数</param> /// <param name="method">执行的方法</param> public static
void Loop(int count,Action method) { for (int i = 0; i < count; i++) { method();
} } /// <summary> /// 循环指定次数 /// </summary> /// <param name="count">循环次数</param>
/// <param name="method">执行的方法</param> public static void Loop(int count, Action
<int> method) { for (int i = 0; i < count; i++) { method(i); } } } }

技术
©2019-2020 Toolsou All rights reserved,
java四大函数式接口(重点,简单)html写樱花树,写樱花树的作文HashMap详解某东14薪变16薪,是诚意还是套路?浏览器内核(理解)让人意想不到的Python之樱花树(turtle库的华丽样式)os模块的简单使用