Use of | (or) operator in C#
<p>I am wondering if this two approaches are equivalent? Is one of them better than the other?</p>

<p>First:</p>

<pre><code>bool x = foo();
bool y = bar();

if(x || y)
{
   //...
}
</code></pre>

<p>Second:</p>

<pre><code>if(foo() | bar())
{
   //...
}
</code></pre>
