[Solved] How can I pass into and use two integer arguments into a C# command line program? [duplicate]


When you pass command line arguments to your program they’re contained in the args parameter of your main function.
You can then access each argument through an index.

If you call for example: dotnet data1.dll 10 20 args[0] would be 10 and args[1] would be 20.
Just remember that all command line arguments are initially parsed as a string so you would have to convert these string values to int or another type.

2

solved How can I pass into and use two integer arguments into a C# command line program? [duplicate]