思路话语

。Arlen:思想有多远你就能走多远...

2008年4月10日 #

null,DBNull.Value Convert.DBNull, "" string.Empty, Convert.IsDBNull()

摘要: 1.null: 空引用,不指向任何对象。int i=null是不可以的。 2.DBNull.Value,Convert.DBNull: 对于DataRow,row["mycol"]返回的永远不会是null,只可能是具体字段的值或者DBNull.Value。row["mycol"].ToString()要么是空要么就是具体字段的值。 DBNull只有唯一的实例,DBNull... 阅读全文

posted @ 2008-04-10 11:22 Arlen 阅读(777) 评论(1) 推荐(0) 编辑

导航