title: How IEnumerable are stored in memory in c#?
body: <p>Like Array is the sequential memory allocation, and list might get stored in memory in the same way as linked list ( please correct me if i am wrong ). How IEnumerable are stored in memory in c#?
  Suppose I have a class</p>
  
  <pre><code> public class Employee
   {
        public int Id { get; set; }
        public string Name { get; set; }
   }
  </code></pre>
  
  <p>How the memory allocation will differ in below two cases. why compiler doesn't allow us to edit IEnumerables</p>
  
  <pre><code>IList&lt;Employee&gt; EmpList ;
  
  Or
  
  IEnumerables&lt;Employee&gt; EmpList ;
  </code></pre>