C# class without main method

后端 未结 10 585
情话喂你
情话喂你 2021-01-02 02:44

I\'m learning C# and I\'m very new to it, so forgive me for the seemingly stupid question. I have some experience in Java, and I noticed that C# programs also need a m

10条回答
  •  耶瑟儿~
    2021-01-02 03:00

    In this scenario you need at least one class in your code with the Main method in it. The other classes do not need the Main method.

提交回复
热议问题