title: Difference between IList<T> and List<T>
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/400135/c-sharp-listt-or-ilistt">C# - List&lt;T&gt; or IList&lt;T&gt;</a>  </p>
  </blockquote>
  
  
  
  <p>I have a class</p>
  
  <pre><code> public class Employee
   {
        public int Id { get; set; }
        public string Name { get; set; }
   }
  </code></pre>
  
  <p>And I need to define a list and what is the difference between defining it in below ways</p>
  
  <pre><code>IList&lt;Employee&gt; EmpList ;
  
  Or
  
  List&lt;Employee&gt; EmpList ;
  </code></pre>