Count method or property for an IList
<p>Thanks for help with explaining to me about IList and IEnumerable. I have marked that <a href="http://stackoverflow.com/questions/8692742/cannot-convert-from-an-ienumerablet-to-an-icollectiont/" title="question">question</a> as answered. Now I have a request for just a bit more information. </p>

<p>I have code like this:</p>

<pre><code>for (var index = 0; index &lt; Model.Items.Count(); index++) 
</code></pre>

<p>It was suggested in a previous post that it's not efficient as the Count() is a method and it gets executed many times. I tried the following:</p>

<pre><code>for (var index = 0; index &lt; Model.Items.Count; index++) 
</code></pre>

<p>This seems to work.  </p>

<p>Can someone please confirm there's a difference. Both work so I am not 100 % sure.</p>

<p>Would the following be the most efficient? Does the foreach need an IList or and IEnumerable?</p>

<pre><code>foreach(var item in Items) 
</code></pre>
