I'm building a dictionary and I have a database of words with equivelant meaning in Access file. I want to use hash table for finding the words and the meaning. My question is how to implement the hashtable which can use the file as the reference. or any other guide you might have about this case?
question about Hashtable in C#
Page 1 of 14 Replies - 499 Views - Last Post: 15 November 2011 - 08:54 AM
Replies To: question about Hashtable in C#
#2
Re: question about Hashtable in C#
Posted 15 November 2011 - 08:25 AM
You want to implement a Hashtable, as in write your own? Because a Hashtable already exists...
Or do you mean you want to know how to utilize the existing Hashtable? In which case, here's the documentation for that class with some example code at the bottom:
http://msdn.microsof....hashtable.aspx
Or do you mean you want to know how to utilize the existing Hashtable? In which case, here's the documentation for that class with some example code at the bottom:
http://msdn.microsof....hashtable.aspx
#3
Re: question about Hashtable in C#
Posted 15 November 2011 - 08:28 AM
Also, you don't need to use a Hashtable in C# anymore. There's a more convenient construct: Dictionary<TKey, TValue>. It is a generic hash table.
#4
Re: question about Hashtable in C#
Posted 15 November 2011 - 08:36 AM
lordofduct, on 15 November 2011 - 08:25 AM, said:
You want to implement a Hashtable, as in write your own? Because a Hashtable already exists...
Or do you mean you want to know how to utilize the existing Hashtable? In which case, here's the documentation for that class with some example code at the bottom:
http://msdn.microsof....hashtable.aspx
Or do you mean you want to know how to utilize the existing Hashtable? In which case, here's the documentation for that class with some example code at the bottom:
http://msdn.microsof....hashtable.aspx
Yes, I mean how to utilize the existing hashtable. Sorry my question was confusing. Thank you very much. I will look at the link and reply you about how useful was it.
#5
Re: question about Hashtable in C#
Posted 15 November 2011 - 08:54 AM
Curtis also points out the very useful Dictionary class as well that has type safety and the sort. Which is especially useful for those types that would otherwise be 'boxed' in Hashtable.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|