title: What's the best code for performance to check if a .net arraylist have two or more items with the same value?
body: <p>I don't want check if an item with a value exists in the arraylist, </p>
  
  <p>I want to know the best code for performance to get how many occurrences of the same item with the same value exists in an arraylist.</p>
  
  <p>I can do something like </p>
  
  <pre><code>For Each s As string In myArrayList
  [...]
  Next
  </code></pre>
  
  <p>however is there a better code of that?</p>