|
| Total Answers and Comments: 6 |
Last Update: January 16, 2008 |
|
| | |
|
No best answer available. Please pick the good answer available or submit your answer. | |
March 05, 2006 22:57:59 | |
| Mike K |
|
|
RE: How do you add objects to hashtable
| Actually operator adds an element too. The following example adds key-value pair x - value to Hashatble h: HashTable h new HashTable(); h( x ) value ; |  | | Is this answer useful? Yes | No | | |
|
| |
|
January 16, 2008 00:26:40 | |
| Kal_CSharp |
|
Member Since: January 2008 Contribution: 7 |
RE: How do you add objects to hashtable
| See the example here:
Hashtable ht new Hashtable(); ht.Add(0 "Kals");ht.Add(1 "Kal"); (or) ht[0] "ABC"; ht[1] "XYZ"; |  | | Is this answer useful? Yes | No | | |
|
| |
Go To Top
|