How to implement hash table like functionality
-
srinivas0099 wrote:
Please help me
:wtf:
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
WTF ! use Dictionnary class :omg:
-
System.Collections.Hashtable hashtable = new System.Collections.Hashtable();
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)Well, that's just obviously wrong. He said Hashtable-like functionality, not Hashtable functionality. The way I see it, he has 4 options: 1. public class MyHashtable : Hashtable {} 2. public class MyHashtable { /* Implement the hash table in here as a member variable that links to a standard Hashtable */ } 3. public class MyHashtable { /* Implement the hash table here from scratch */ } or my favourite: 4. Go to job centre and apply for position with Pizza Hut as table wiper.
Deja View - the feeling that you've seen this post before.
-
Well, that's just obviously wrong. He said Hashtable-like functionality, not Hashtable functionality. The way I see it, he has 4 options: 1. public class MyHashtable : Hashtable {} 2. public class MyHashtable { /* Implement the hash table in here as a member variable that links to a standard Hashtable */ } 3. public class MyHashtable { /* Implement the hash table here from scratch */ } or my favourite: 4. Go to job centre and apply for position with Pizza Hut as table wiper.
Deja View - the feeling that you've seen this post before.
Pete O'Hanlon wrote:
Pizza Hut
Hashtable - maybe the Amsterdam branch[^]?
Pete O'Hanlon wrote:
table wiper
... as easy as pizzatable.Clear();
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)