黄朝辉 发表于 2011-10-27 09:37 有,比如分页的时候。 从例子中看出: out 可以给初始值可以不给,但ref一定要给初始值
小张老师 发表于 2011-10-28 11:21 static void Main(string[] args) { int a=0; //必须赋值