title: C# inline conditional nullabel value types
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/75746/conditional-operator-assignment-with-nullablevalue-types">Conditional operator assignment with Nullable&lt;value&gt; types?</a>  </p>
  </blockquote>
  
  
  
  <p>in the following code snippet <em>company.ParentID</em> is a <strong>int?</strong> and <em>parrent</em> a reference type.
  this code is a syntax error.
  is there anyway to fix this inline conditional??</p>
  
  <p><code>company.ParentID = (parent == null ? null: (parent.ID));</code></p>