110,537
社区成员
发帖
与我相关
我的任务
分享
void first()
{
int a = 1;
Second(ref a);
}
void Second(ref int a)
{
a =2;
}
或
void first()
{
int a;
Second(out a);
}
void Second(out int a)
{
//a=new System.Int32(); //不要这句估计可以?
a =2;
}