📜  使用来自其他过程的变量 C# 代码示例

📅  最后修改于: 2022-03-11 14:49:09.440000             🧑  作者: Mango

代码示例1
void Method1()
{
    var myString = "help";
    Method2(myString);
}

void Method2(string aString)
{
    var myString = "I need ";
    var anotherString = myString + aString;
}