方法一
public void test(ref int a, ref string b, ref string c)
方法二
public string test(out int sql,out string tb, out string td)
方法三
struct threeValue
{
int sql;
string tb;
string td;
}
public threeValue test(threeValue value)
{
value.sql=1;
value.tb="1";
value.td="1";
return value;
}
private void Page_Load(object sender, System.EventArgs e)
{
int a;
int b;
int c;
id=1;
test(a,b,c);
}
public string test(int a, int b, int c)
{
a=a*2;
b=b*a;
c=c*b;
return …… //即是如何返回a,b,c这三个值?
}