How exactly is string[] args populated in a C# Main method?
For instance, is white space stripped? Are any of the elements ever empty string or null? How are single and double quotes handled?
MSDN doesn’t explain how and merely says
The parameter of the Main method is a String array that represents the command-line arguments
I believe the args given to Main are those returned by Environment.GetCommandLineArgs() after removing the first of the list. MSDN describes the suprisingly complex logic concerning backslashes:
Thanks to Christian.K in the comments.