位置:首页 > 编程专栏

按址传递参数

        private voidbutton1_Click(object sender, EventArgs e)

       {

            stringa = "";

            intb = 0;

            Abc(refa,ref b);

            MessageBox.Show(a+ b.ToString (), "0");

       }

 

 

       private voidAbc(ref stringaaa,ref int b)

       {

            aaa = "00";

            b = 1;

        }

C# 社区推荐