LvMax 发表于 2013-1-26 16:40:11

类型转换集合

将空字符串转换为Null值string str = "";int? n = string.IsNullOrEmpty(str) ? (int?)null : int.Parse(str);
页: [1]
查看完整版本: 类型转换集合