当你的才华不能撑起你的野心时,就是你该选择学习的时候了!

摘要: .Net中通用分页页数计算方式,分页的总页数算法 总记录数:totalRecord每页最大记录数:maxResult 算法一:totalPage = totalRecord % maxResult == 0 ? totalRecord / maxResult : totalRecord / maxR 阅读全文
posted @ 2020-04-13 17:09 hofmann 阅读(4653) 评论(1) 推荐(2)
摘要: List<string> 转 List<int> var list = (new[]{"1","2","3"}).ToList(); var newlist = list.Select<string,int>(x =>Convert.ToInt32(x)); List<int> 转List<stri 阅读全文
posted @ 2020-04-13 13:06 hofmann 阅读(2071) 评论(0) 推荐(0)