Console app arguments, how arguments are passed to Main method

前端 未结 10 1204
醉话见心
醉话见心 2020-12-08 09:30

This would be question from c# beginner. When I create console application I get Main method with parameter args as array string. I do not understand how t

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 10:26

    Command line arguments is one way to pass the arguments in. This msdn sample is worth checking out. The MSDN Page for command line arguments is also worth reading.

    From within visual studio you can set the command line arguments by Choosing the properties of your console application then selecting the Debug tab

提交回复
热议问题