I want to set a variable to the default value if the assignment returns null or something else.
string a = GetValue();
if GetValue returns null, then I want to have a default value for the variable a, how to do it in C #. Do not try to use if.
Thanks for the time.
source
share