How to get multi-line parameters in c# -


is there way multiple lines of parameters parsed through main entry point in c# application? suppose have batch process:

myapp.exe ( param1 param2 param3 ) 

how these parameters inside console application?

myapp.exe:

using system;  namespace mynamespace {     static class program     {         static void main(string[] args)                                // ^ parameters here         {      } } 

you can parameters :

static void main(string[] args) {     string param1 = args[0];     string param2 = args[1];     string param3 = args[2]; } 

and launch application :

myapp.exe param1 param2 param3 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -