Introducing myself to ternary operators
Also, I don't understand the syntax used in the lines, except that it
follows a basic structure of a ternary operator.
string path = args == null || args.Length == 0 ?
@"C:\GENERIC\SYSTEM\PATH" :
args[1];
I've never seen anything like this before; Would someone help me translate
it into real english (or pseudocode), much in the way an if statement can
be turned into "if this then that"?
Thank you.
No comments:
Post a Comment