Jun 29, 2020 10:41 PM|PaulTheSmith|LINK
Since c# V6 you can write
string s = sourcejson.Address?.City;
?. is the null conditional operator (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operators#null-conditional-operators--and-).
If .Address is null then the .City part will not be evaluated and the whole expression returns null.
If source.Address is not null then s is set to the value of City
if source.Address is null then s is set to null.
** Just noticed someone already gave this answer. Shouldn't stop for coffee in the middle of posting **