Is this possible in one line of code ? null : yourHelpfulAnswer
Thank you in advance.
var x = await Foo_Get() == null ? 123: Foo.SomeProperty;
Just seems like there is a much better way than:
var myVal = 123;
var foo = await Foo_Get();
if(foo != null) myVal = foo.SomeProperty;