//返回多个值函数 private string TestOut(out char i) { i = 'a'; return "good study"; } protected void Page_Load(object sender, EventArgs e) { char i;//不必初始化 string getReturn = TestOut(out i); Response.Write("方法执行的返回值是:" + getReturn + "/r/n"); Response.Write("返回out参数的值是:" + i.ToString() + "/r/n"); }