Creating objects in Loop C#
<p>Just was curious about below code. </p>

<pre><code>for (int i=0;i&lt;9;i++)
{
   ClassA objectA = new ClassA();
}
</code></pre>

<p>or </p>

<pre><code>ClassA objectA;
for (int i=0;i&lt;9;i++)
{
    objectA= new ClassA();
}
</code></pre>

<p>Any Idea is there any difference for both code ? 
from my knowledge both will create different instances each time so number of instances are going to same .. Any idea ?</p>
