How can I use the ternary ? : condition to perform multiple operations, if expression is true/false?
? :
wbsource = (exp) ? (Do one thing) : (Do secon
Short answer, use an if block, its the only sane thing to do.
if
Other answer, for the dirty, smelly insane individual.
filename = (fp!=null) ? Func {fp = Properties.Settings.Default.filename; Properties.Settings.Default.Save; return fp;} : Properties.Settings.Default.file;