摘要: 两种写法:if (conn.State == System.Data.ConnectionState.Open) { conn.Close(); }if (conn.State != System.Data.ConnectionState.Closed) { conn.Close(); }大家常用的是哪个? 阅读全文
posted @ 2013-12-02 21:04 Patrick Yu 阅读(1510) 评论(0) 推荐(0) 编辑