+ 2
And if you don't have the need to access command line arguments you can leave out the string[] altogether and write "static void Main()". Please note that you can't have both - either the string[] version or the other one.
7th May 2016, 10:33 AM
steamrunner
0
Once your code is compiled, you can call your program sending arguments thru the args[] array. For example: doSomething.exe will have an empty args[] array, but doSomething.exe a --b c will have the args["a","--b","c"] and then you can process those parĂĄmetros into your programm..
5th May 2016, 1:04 PM
José María Melo
José María Melo - avatar