需要使用三元操作符:

newValue = (oldValue is DBNull) ? null : oldValue;

相关文章:

  • 2022-12-23
  • 2022-03-11
  • 2021-08-19
  • 2021-11-23
  • 2022-02-20
  • 2021-11-23
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-05-17
  • 2021-07-08
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
相关资源
相似解决方案