+ 1

Can i make program without using Main Method in c# ?

1st Oct 2020, 1:29 AM
Rishi
Rishi - avatar
2 Réponses
+ 1
I don't know if you are able to run certain methods in a cs program from the command prompth, but otherwise "every program starts from the main".
1st Oct 2020, 6:58 AM
Seb TheS
Seb TheS - avatar
+ 1
You can run without main. But your needs a entry point. If you do not call it main it has to have a different name. https://stackoverflow.com/questions/2610337/c-sharp-way-to-name-main-method-by-yourself Have a look at this link for more opnions Question is : Why di you want to do it?
1st Oct 2020, 10:40 AM
sneeze
sneeze - avatar