Exact duplicate:
Split string containing command-line parameters into string[] in C#
C#: How do you configure for a string[] to accept input of a whole string the way the console's main entry point accepts it broken up?
When you execute a console application made in c#, it's main method accepts any other arguments typed into it while executing into it's string[] args parameter broken up into an array in args[].
How can you accomplish the same thing if you're not using a console application?