public static int GetInterpurchaseTimes(IEnumerable list, int range = 100) { if (list != null && list.Count() > 0) { return (int)Math.Ceiling(list.Count() / (double)range); } return 0; }
本文共 352 字,大约阅读时间需要 1 分钟。
public static int GetInterpurchaseTimes(IEnumerable list, int range = 100) { if (list != null && list.Count() > 0) { return (int)Math.Ceiling(list.Count() / (double)range); } return 0; }
转载于:https://www.cnblogs.com/XuPengLB/p/10521103.html