Link to home
Start Free TrialLog in
Avatar of ram27
ram27

asked on

What is difference between HashTable.Contains and HashTable.ContainsKey

Hi

What is the difference between HashTable.Contains and HashTable.ContainsKey. Which one will be faster and efficenet

Please advice

 

Thanks,

Ram

Avatar of Imran Javed Zia
Imran Javed Zia
Flag of Pakistan image

Hi,

In HashTable Contains uses ContainsKey internally so, ContainsKey is faster then Contains.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Anil Golamari
Anil Golamari
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ram27
ram27

ASKER

It hepled me partially