int a=1;int b=2;int c = calculate(a,ref b);private int calculate(int m,ref int n){ b=a*2; c=b*2; return c;}结果:a=1;b=2;c=4;