So I have been intrigued by the ?? operator, but have still been unable to use it. I usually think about it when I am doing something like:
var x = (someObje
I usually use it for strings or nullable types.
string s = someString ?? "Default message";
is easier than
string s; if(someString == null) s = "Default Message"; else s = someString;
or
string s = someString != null ? someString : "Default Message";