Declaring a variable inside an equality operation possible?
<p>Very quick question - whilst the following is possible in C#:</p>

<pre><code>var a = new []{"hello"};
string[] b;
if ((b=a)!=null) { ... }
</code></pre>

<p>the following is not:</p>

<pre><code>var a = new []{"hello"};
if ((string[] b=a)!=null) { ... }
</code></pre>

<p>Just wanted to confirm that I wasnt doing anything wrong in the second example and something along those lines are not possible. (In the similiar way aspects from the second example might be posible inside a <code>using()</code>.</p>
