我有以下代码行
if (DBNull.Value.Equals(o) || o != null)
我在哪里o
不断object o in row.ItemArray
收到错误-->
Xml type "List of xdt:untypedAtomic" does not support a conversion from Clr type "DBNull" to Clr type "String".
我不明白的是,当我单步执行我的代码时,这if
应该是捕捉到它并执行我的替代操作,但它没有?
有人可以为我解释一下吗。
谢谢!