62,074
社区成员
发帖
与我相关
我的任务
分享
protected void ods_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
//这个就是那个flag
e.OutputParameters["flag"].ToString();
}
public int RefValue(int i,ref int j)
{
int k = j;
j =222;
return i+k;
}
public int OutValue(int i, out int j)
{
j = 222;
return i + j;
}
private void cmdRef_Click(object sender, EventArgs e)
{
int m = 0;
MessageBox.Show(RefValue(1, ref m).ToString());
MessageBox.Show(m.ToString());
}
private void cmdOut_Click(object sender, EventArgs e)
{
int m;
MessageBox.Show(OutValue(1, out m).ToString());
MessageBox.Show(m.ToString());
}