title: Cannot convert type 'string' to 'System.Collections.Generic.IList<string>
body: <p>I keep gettig this error:</p>
  
  <blockquote>
    <p>"Cannot convert type 'string' to
    'System.Collections.Generic.IList"</p>
  </blockquote>
  
  <p>Here is my program:</p>
  
  <pre><code>class Program
  {
  
  
      static void Main(string[] args)
      {
  
  
          List&lt;string&gt; list = new List&lt;string&gt;(); 
          list.Add("a");
          list.Add("b");
          list.Add("c");
          list.Add("d");
  
  
  
          foreach (IList&lt;string&gt; name in list ) 
          {
              Console.WriteLine(String.Format("{{{0} {1} {2}}}", list[0], list[1], list[2]));
  </code></pre>