title: C# if then else shorthand won't compile
body: <p>The following compiles ok:</p>
  
  <pre><code>if (_logon.LogonToConnector())
  {
      MessageBox.Show("Logon Success");
  }
  else
  {
      MessageBox.Show("Logon Failed");
  }
  </code></pre>
  
  <p>But for the more concise equivalent:</p>
  
  <pre><code>_logon.LogonToConnector() ? MessageBox.Show("Logon Success") : MessageBox.Show("Logon Failure");
  </code></pre>
  
  <p>The compiler gives the error: </p>
  
  <blockquote>
    <p>Only assignment, call, increment, decrement, and new object expressions can be used as a statement    UniformTestClient   </p>
  </blockquote>
  
  <p>Where did I go wrong?</p>