+ 1
Why isn't params used in the Main method?
It is my understanding that the params modifier allows for, among other things, a function call with no parameters. How can the program be executed with no arguments when params isn't used in the Main method? In other words, if we are allowed to run the program with no command-line arguments, why don't we have to write the following: static void Main(params string[] args) { } Thanks!
3 Respuestas
0
How so? You just showed me the code without the use of the params modifier.
Also, I'm asking about C#, not Java. Your code would produce an error in C#.
- 1
actually they are
- 1
Public static void Main(String[] args) {}