写提莫的代码

导航

out与ref的区别

out与ref的区别  前者传参时不必初始化,后者需要初始化

int a,b;

public void fName(out int a,out int b);

fName(out a , out b);

posted on 2015-06-19 09:57  写提莫的代码  阅读(172)  评论(0)    收藏  举报