Hey I just came across the following statement
return name != null ? name : "NA";
I am just wondering what this is called in .NET
does the ? stand for i.e. then do this... ?
It's a "conditional operator" commonly known as the Ternary operator
It's found in many programming languages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With