摘要: 使用ref前必须对变量赋值,out不用。 out的函数会清空变量,即使变量已经赋值也不行,退出函数时所有out引用的变量都要赋值,ref引用的可以修改,也可以不修改。 区别可以参看下面的代码: using System; class TestApp { static void outTest(out int x, out int y) {//离开这个函数前,必须对x和y赋值,否则... 阅读全文
posted @ 2007-12-24 14:18 裸牛 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1using System; 2using System.Collections; 3using System.Collections.Specialized; 4using System.Data; 5using System.Data.SqlClient; 6using System.Configuration; 7 8namespace SQLServerDA... 阅读全文
posted @ 2007-12-24 14:00 裸牛 阅读(395) 评论(0) 推荐(0) 编辑