About
Pricing
Community
Teams
Start Free Trial
Log in
ram27
asked on
5/19/2011
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
.NET Programming
Visual C++.NET
WCF
3
1
Last Comment
ram27
8/22/2022 - Mon
Imran Javed Zia
5/19/2011
Hi,
In HashTable Contains uses ContainsKey internally so, ContainsKey is faster then Contains.
Thanks
ASKER CERTIFIED SOLUTION
Anil Golamari
5/20/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ram27
6/9/2011
ASKER
It hepled me partially
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
In HashTable Contains uses ContainsKey internally so, ContainsKey is faster then Contains.
Thanks