int? 参数是这个的时候 是可以传入null的 而int的就不行

such as     pager.CurrentPageIndex = (page != null ? (int)page : 1);

原文地址:https://www.cnblogs.com/muxueyuan/p/4402497.html