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

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

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

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -