这样编译时候出错:Type of conditional expression cannot be determined because there is no implicit conversion between '<null>' and 'int'
如何解决?
...全文
32610打赏收藏
如何把字符串转换为int?类型?
int? Position_ID; Position_ID = string.IsNullOrEmpty(pid) ? null : int.Parse(pid); 这样编译时候出错:Type of conditional expression cannot be determined because there is no implicit conversion between '' and 'int' 如何解决?