title: Nullable Enum nullable type question
body: <p>I get the following compilation error with the following source code:</p>
  
  <p>Compilation Error:</p>
  
  <p>Type of conditional expression cannot be determined because there is no implicit conversion between '' and 'MyEnum'</p>
  
  <p>Source Code</p>
  
  <pre><code>public enum MyEnum
  {
      Value1, Value2, Value3
  }
  
  public class MyClass
  {
      public MyClass() {}
      public MyEnum? MyClassEnum { get; set; }
  }
  
  public class Main()
  {
     object x = new object();
  
     MyClass mc = new MyClass()
     {
          MyClassEnum = Convert.IsDBNull(x) : null ? 
              (MyEnum) Enum.Parse(typeof(MyEnum), x.ToString(), true)
     };
  }
  </code></pre>
  
  <p>How can I resolve this error?</p>