Why its better (Return IList Instead of return List)?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/400135/c-listt-or-ilistt">C# - List&lt;T&gt; or IList&lt;T&gt;</a>  </p>
</blockquote>



<p>When I return a list from my method I can do in 2 way.
As a List</p>

<pre><code>Private List&lt;datatype&gt; MethodName()
{
    Return List
}
</code></pre>

<p>As a IList  </p>

<pre><code>Private IList&lt;datatype&gt; MethodName()
{
    Return IList
}
</code></pre>

<p>As I heard we should return it as a IList. Is anyone can explain whys that?</p>
