Ternary operator c#
<p>in php</p>

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

<p>but how in c#?</p>

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

<p>wrong...</p>
