例如

Object result;

  我直接这样是不行的

if(result==null)   //这样是错的
 ...

 

  要这样判断

if(result == System.DBNull.Value)   //这样才是对的
 ...

 

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2021-11-04
  • 2022-01-05
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-05-20
  • 2021-10-04
  • 2021-10-18
相关资源
相似解决方案