title: Resharper's example code for explaining "Possible multiple enumeration of IEnumerable"
body: <p>Sometimes Resharper warns about:</p>
  
  <blockquote>
    <p>Possible multiple enumeration of IEnumerable</p>
  </blockquote>
  
  <p>There's <a href="https://stackoverflow.com/q/8240844/419956">an SO question on how to handle this issue</a>, and the ReSharper site also explains things <a href="http://confluence.jetbrains.com/display/ReSharper/Possible+multiple+enumeration+of+IEnumerable" rel="noreferrer">here</a>. It has some sample code that tells you to do this instead:</p>
  
  <pre><code>IEnumerable&lt;string&gt; names = GetNames().ToList();
  </code></pre>
  
  <p>My question is about this specific suggestion: won't this still result in enumerating through the collection twice in the 2 for-each loops?</p>