类型转换集合
将空字符串转换为Null值string str = "";int? n = string.IsNullOrEmpty(str) ? (int?)null : int.Parse(str);