title: Parse a list to a string
body: <p>Maybe I'm being too clever, but I have a method that goes through a enumerable List(Collections) and returns it as an ........... enumerable List(Sparkles). </p>
  
  <p>I wanted to enclose the first list(Collections) in a class that handles validation and various other duties, otherwise I'd handle directly with the Collections.</p>
  
  <p>I'm pretty sure that sounds more difficult that I should of made it. So the class returns a list(Sparkles) through a method called <em>getSparkles()</em>.</p>
  
  <p>I thought I was do a foreach right:</p>
  
  <pre><code>string msg;
  List&lt;string&gt; layoutListNames = new List&lt;string&gt;();
  
  foreach (string name in layoutList.getLayout());
  {
       msg = "\n" + name;
  }
  </code></pre>
  
  <p>The compiler, however, disagrees with me.</p>
  
  <p>Give me a hint. I would like to learn.</p>
  
  <p>Edit: Sorry. getLayout() returns a List&lt;>. And I removed the semicolon.
  Oh /facepalm. </p>
  
  <p>I wrote this in a constructor to test a class and forgot to change the name of the constructor to match the class name. Thanks for the incredibly fast responses.</p>