类型转换集合
将空字符串转换为Null值string str = "";int? n = string.IsNullOrEmpty(str) ? (int?)null : int.Parse(str);
发布时间: 2012-12-21 12:03:49 作者: rapoo
类型转换集合
将空字符串转换为Null值string str = "";int? n = string.IsNullOrEmpty(str) ? (int?)null : int.Parse(str);