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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -