Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

two question marks together mean in C#

var x = foo ?? bar;

// expands to:
var x = foo != null ? foo : bar;

// which further expands to:
if(foo != null)
    var x = foo;
else
    var x = bar;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #question #marks
ADD COMMENT
Topic
Name
2+5 =