private void Test(string w, out int x, out bool y, out string z)
{
// 函数需用void声明
x = 2;
y = false;
z = w + "zzz";
}
private void button1_Click(object sender, EventArgs e)
{
int xx;
bool yy;
string zz;
Test("abc",out xx,out yy,out zz);//调用时,仍需调用 out
richTextBox1.AppendText(xx.ToString() + "\r\n");
richTextBox1.AppendText(yy.ToString() + "\r\n");
richTextBox1.AppendText(zz.ToString() + "\r\n");
}