摘要: private static int GetAge() { DataTable dt = SqlHelper.ExecuteDataTable("select * from T_Customers where id=4"); T_Customers cust = new T_Customers(); DataRow row = dt.Rows[0]; //int i = null;//因为在C#中,int、bool、DateTime等值类型的数据不可以为null //string,Person等属于引用类型,可以为null //值类型:拷贝传递,不可以为null //引用类 阅读全文
posted @ 2011-12-25 01:45 骨头森林 阅读(550) 评论(0) 推荐(0) 编辑