c# as keyword reference assignment
<p>Just wondered if I have a variable constructed as follows</p>

<pre><code>object a = new CustomClass;
CustomClass b = a as CustomClass;
</code></pre>

<p>and I then manipulate b by invoking b.DoWork</p>

<p>Do I need to assign b back to a  (a=b) or am I correct in thinking they both refer to the same reference / memory address </p>

<p>EDIT: </p>

<p>Thanks for the answers - It looks like there is no need to do teh assignment (a=b) as both point to the same object</p>
