Equivalent JavaScript operator in C #

Is there any equivalent? how does it exist in c # in javascript to check for "undefined"? For instance:

var count = something ?? 0;
+4
source share
1 answer

Use logical OR

var count = something || 0;
+7
source

Source: https://habr.com/ru/post/1589407/


All Articles