How can I make user's input work on different methods in C#?

后端 未结 0 1952
独厮守ぢ
独厮守ぢ 2021-02-12 20:27

How could I make team1 in method1 work in method 2?

static void method1()
{
  string team1 = "";
  team1 = Console.ReadLine();
}
static void method2()
{         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题