判定数据库中提取出来的数据是否为空

objVar == Convert.DBNull

引用类型的变量可以和null直接进行比较。

猜你喜欢

转载自www.cnblogs.com/hanje/p/10778878.html