获取交互次数(分页)

public static int GetInterpurchaseTimes<T>(IEnumerable<T> list, int range = 100)
        {
            if (list != null && list.Count() > 0)
            {
                return (int)Math.Ceiling(list.Count() / (double)range);
            }
            return 0;
        }

  

posted @ 2019-03-13 09:47  会弹猫的吉他  阅读(210)  评论(0编辑  收藏  举报