My head just exploded

From the documentation for something as mundane as System.Environment.GetCommandLineArgs:

Backslash characters (REVERSE SOLIDUS (U+005C)) followed by a quotation mark are interpreted specially. If 2n backslashes are followed by a quotation mark, the command-line argument contains n backslashes, and quoted text begins if previous text was unquoted or ends if previous text was quoted. If 2n+1 backslashes are followed by a quotation mark, the command-line argument contains n backslashes and a literal quotation mark. If n backslashes are not followed by a quotation mark, the command-line argument contains n backslashes.

I do not have the slightest idea what I read there.

 

Note to self: Try and come up with examples:

– how it can be used

– where it should be used

– why it would be used

Advertisements
This entry was posted in Coding Horror. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s