title: Does one of these use more resources than the other?
body: <p>What is happening differently in the background for these two code blocks?  Would one be considered "better" than the other?  </p>
  
  <p>My thought is that Example2 might be worse because it might have to wait for the garbage collector to dispose of the item, but I don't know enough about the garbage collector to know if that is true.</p>
  
  <p>Example1:</p>
  
  <pre><code>ListItem item;
  for (int i = 1; i &lt;= 32; i++)
  {
     item = new ListItem();
     //do some stuff
  }
  </code></pre>
  
  <p>Example2:</p>
  
  <pre><code>for (int i = 1; i &lt;= 32; i++)
  {
     ListItem item = new ListItem();
     //do some stuff
  }
  </code></pre>