var d = get(x).Title;
var e = get(y).Title;
The getting of Title gives an exception if get(y) returns null. However what I need is for e to be null if get(y) is null and there to be no exception generated. I can do this with two steps of get(y) but I want to only do the get(y) one time.
Is there some easy one line way that I can with just one get(y) and with one line of code set e to null if get(y) is null or the actual value if get(y) does not return a null?
You can also use extension methods like those: