Easy Way to Perform C# Null Check in a Type Conversion
<p>I am doing some quick type conversions in a project I am not that very familiar with. </p>

<p>They look similar to this:</p>

<pre><code>var NewType = new
{
    NewTypeId = old.SubType == null ? 0 : old.SubType.SubTypeId ?? 0,
    OtherType = old.OtherType ?? "",
    Review = old.CustomerComments ?? "",
    Country = old.Country == null ? "" : old.Country.Abbreviation ?? "",
    Customer = old.SubType == null ? "" :
                    old.SubType.Customer == null ? "" :
                        old.SubType.Customer.Name ?? ""
};
</code></pre>

<p>The objects I'm converting are usually Entity Framework objects. I also don't have the ability to modify the classes I will be converting form. </p>

<p>Is there an easier way to check for nulls, specifically for situations like this where any of the sub-objects could be null?</p>

<pre><code>OldType.SubType.AnotherSubType.SomeProperty
</code></pre>