Ternary operator c#
<p>In php, I can do this:</p>

<pre><code>$var = if($var2 == 3) ? $var : null;
</code></pre>

<p>But how can I do it in C#?</p>

<pre><code>user_email.Content = if(dr["user_email"] == "") ? dr["user_email"] : null;
</code></pre>

<p>Does not work.</p>
