Answers for "using variables from other procedures C#"

C#
3

using variables from other procedures C#

void Method1()
{
    var myString = "help";
    Method2(myString);
}

void Method2(string aString)
{
    var myString = "I need ";
    var anotherString = myString + aString;
}
Posted by: Guest on October-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language