title: Retrieve an object from hashset in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1494812/why-cant-i-retrieve-an-item-from-a-hashset-without-enumeration">Why can&#39;t I retrieve an item from a HashSet without enumeration?</a>  </p>
  </blockquote>
  
  
  
  <p>I need to add a lot of objects to a Set.and I should retrieve them very fast. The only way that I know is using hash. But the HashSet class in C# doesn't contain any 'Get' method. The dictionary class isn't useful because Finding an object is very time-consuming in a dictionary.</p>