What is “string[] args” in Main class for?

后端 未结 8 1505
眼角桃花
眼角桃花 2020-12-13 01:37

In C# the Main class has string[] args parameter.

What is that for and where does it get used?

8条回答
  •  粉色の甜心
    2020-12-13 02:18

    For passing in command line parameters. For example args[0] will give you the first command line parameter, if there is one.

提交回复
热议问题