您的位置:首页 > 其它

初始加载时把字符串,也就是""转化为int类型

2011-05-27 18:25 309 查看
int? s;
int? e;

if (string.IsNullOrEmpty(smallBonuspointNumber))
s = null;
else
s = int.Parse(smallBonuspointNumber);

if (string.IsNullOrEmpty(bigBonuspointNumber))
e = null;
else
e = int.Parse(bigBonuspointNumber);



IList list = VIPBonuspointRule.Instance.GetVIPBonuspoint(uid, s, e, "vipno", "desc", 1, 10);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐