110,537
社区成员
发帖
与我相关
我的任务
分享
private void button22_Click(object sender, System.EventArgs e)
{
object x = "MM";
object y = 12;
increase(ref x);
increase(ref y);
MessageBox.Show(x);
MessageBox.Show(y.ToString());
}
private static void increase(ref object x)
{
if (x.GetType() == Type.GetType("System.String"))
x = "QQ";
else
x = 13;
}