初始加载时把字符串,也就是""转化为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);
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);
相关文章推荐
- 解决"将expression转化为数据类型int时发生算术溢出错误"
- 将request.getParameter("supplyId")获得的字符串转化成int类型
- iOS 判断字符串"<null>"类型
- 使用js将long类型转化为"yyyy-MM-dd hh:mm:ss"日期格式&jQuery自带日历控件的汉化教程
- 分析器错误信息: 未能加载类型"命名空间.类"... ---小结
- 将一个整形数据转化为对应的字符串如1234 -> "1234"(可以用库函数,也可以写算法)
- operator=(LONG);报 "error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int"的处理方法
- java &安卓 16进制字符串与byte互换以及int与byte类型数据转换
- IntelliJ IDEA 14 编译时报错:“编码GBK的不可投射字符”,"未结束的字符串字面值"和非法的类型开始
- 将一个int类型的数字转化为字符串,并判断有无重复字符串(长度应大于等于2)有返回1,无返回0
- osg源码中的ref_ptr operator unspecified_bool_type() 指向类数据成员的指针&类转化为另一类型(如自定义的C类转化为int)
- c++基本类型&&&c++string与c风格字符串的相互转化
- 由object转化为Int类型时,字符串做为中间转化量是有区别的
- 【C编程练习】2013华为校园招聘机试题目题5:将一个int类型的数字转化为字符串,并判断有无重复字符串(长度应大于2)有返回1,无返回2
- 无法转化为项目财富的技术或功能就是"垃圾"
- IntelliJ IDEA 编译时报错:“编码GBK的不可映射字符”,"未结束的字符串字面值"和非法的类型开始
- 让QT 4.7 支持DBUS调用中传递"aas(字符串二维数组)“ 数据据类型
- IntelliJ IDEA 12 编译时报错:“编码GBK的不可映射字符”,"未结束的字符串字面值"和非法的类型开始
- XML 数据类型方法"modify" 的参数1 必须是字符串文字
- C#中进行字符串类型声明时,一个小写 "string ", 一个大写 "String ", 这两个类有什么区别呢?