title: Why is Count not an unsigned integer?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/782629/why-does-net-use-int-instead-of-uint-in-certain-classes">Why does .NET use int instead of uint in certain classes?</a><br>
    <a href="https://stackoverflow.com/questions/6301/why-is-array-length-an-int-and-not-an-uint">Why is Array.Length an int, and not an uint</a>  </p>
  </blockquote>
  
  
  
  <p>I've always wonder why <code>.Count</code> isn't an unsigned integer instead of a signed one?</p>
  
  <p>For example, take <code>ListView.SelectedItems.Count</code>. The number of elements can't be less then 0, so why is it a signed int?</p>
  
  <p>If I try to test if there are elements selected, I would like to test</p>
  
  <pre><code> if (ListView.SelectedItems.Count == 0) {}
  </code></pre>
  
  <p>but because it's a signed integer, I have to test</p>
  
  <pre><code> if (ListView.SelectedItems.Count &lt;= 0) {}
  </code></pre>
  
  <p>or is there any case when <code>.Count</code> could be &lt; 0 ?</p>