c# 类似sql中的isnull()语法

需要使用三元操作符:

newValue = (oldValue is DBNull) ? null : oldValue;
原文地址:https://www.cnblogs.com/tiancaige/p/13924159.html