String tmpStr = "Hello world!"; Test(tmpStr, str); // 结果返回 tmpStr=Hello world private void Test(object varName, String str) { String resultStr = (String)varName; //这里处理转换变量自身.... Console.WriteLin(resultStr +"="+ str); }