HashTable
C#
3
Posts
3
Posters
0
Views
1
Watching
-
How does a HashTable stores data ? it stores inside itself or a HashTable stores only the adress of the object ? Thanks
If you store reference types, it stores only references (adresses). If you store value types, I belive it stores values (copies). David "Stay Kul And Happy" I.A.
-
How does a HashTable stores data ? it stores inside itself or a HashTable stores only the adress of the object ? Thanks
Only the reference are stored. Not just Hashtable, but any collection stores only references to the objects and not the objects themselves. For value types, the value is boxed and a reference to the boxed instance is stored. Regards Senthil _____________________________ My Blog | My Articles | WinMacro