title: Fixed Size to List
body: <p>For declaration perspective the following is allowed</p>
  
  <pre><code>    IList&lt;string&gt; list= new string[3];
      list.Add("Apple");
      list.Add("Manago");
      list.Add("Grapes");
  </code></pre>
  
  <p>1)
  It compiles fine,But runtime i am getting <code>"Collection was of fixed size"</code> error.
  Ofcourse ,collection is  dynamically grown by size,why did such declaration is accepted by complier ?</p>
  
  <p>2) What are the different lists that i can assign to IList ?
     Example</p>
  
  <pre><code>IList&lt;string&gt; fruits=new List&lt;string&gt;();
  </code></pre>
  
  <p>Here I am assigning List to IList ,What are the various collection 
     classes can i assign to IList?   </p>