2

I would like to know if there is a method to get the index of a specified element using hashsets. For example,I have this condition,and I want to get the index of the specified element

    if(hash_set.Contains(search))
     {
       //Get index of element search
     }

Edit: Thanks for all your answers. I decided to use Dictionary<> instead!

Catalin
  • 147
  • 1
  • 2
  • 11

0 Answers0