title: C# Nullable Ints - Compile Error
body: <p>Why does</p>
  
  <pre><code>            int? nullInt = null;
              base.Response.Data = (new BusinessLogic.RefDataManager(base.AppSettingsInfo)).SelectAppData(new DC.AppData() { AppDataKey = app_data_key != string.Empty ? app_data_key : null, AppDataTypeId = app_data_type_id != string.Empty ? int.Parse(app_data_type_id) : nullInt });
  </code></pre>
  
  <p>compile, but this</p>
  
  <pre><code>            base.Response.Data = (new BusinessLogic.RefDataManager(base.AppSettingsInfo)).SelectAppData(new DC.AppData() { AppDataKey = app_data_key != string.Empty ? app_data_key : null, AppDataTypeId = app_data_type_id != string.Empty ? int.Parse(app_data_type_id) : null});
  </code></pre>
  
  <p>does not? Compile error for second statement is "Type of conditional expression cannot be determined because there is no implicit conversion between 'int' and null"</p>
  
  <p>DC.AppData is</p>
  
  <pre><code>public class AppData
  {
      [DataMember(Name = "AppDataKey")]
      public string AppDataKey { get; set; }
  
      [DataMember(Name = "AppDataTypeId")]
      public int? AppDataTypeId { get; set; }
  
  
  }
  </code></pre>