C# equivalent to JavaScript "OR assignment" -


does c# have equivalent javascript's assignment syntax var x = y || z;? in case don't know, result not true/false. if y defined, assigned x, otherwise z assigned x if undefined.

note in javascript variable still has declared: var test;

i think looking ?? operator.

msdn reference


Comments

Popular posts from this blog

How to set a border for android Imageview in Longpress? -

java - Cast from Object to List<String>: CastClassException -