Is there a more terse way of writing if-statements in C#?
<p>Perhaps there is and I don't know about it and if so I would gladly like to be enlightened. I would like to be able to using something similar to the ?: operator but without having to include the : and without having to assign the result to a variable, like so:</p>

<pre><code>q?r();
</code></pre>

<p>which  would be semantically identically to </p>

<pre><code>if (q)
{
    r();
}
</code></pre>

<p>Edit: I should've expressed myself clearer. I'm looking for a way to get rid of the if's and else's and express the conditional statement with a more functional style.</p>

<p>Cheers,
/Christian</p>
