How to copy an object?
I want to copy the contents of a hashtable to another hashtable. I tried the following ways:
//ht1, ht2 are two hashtables
1. ht1=ht2;
2. ht1=new Hashtable();
ht1=ht2;
In both ways, the reference is copied, instead of the data. Are there any way that I can copy it?
Thanks a lot
AdministratorPosted Apr 12, 2003, 9:29 PM
AdministratorPosted Apr 11, 2003, 9:12 AM
AdministratorPosted Apr 11, 2003, 12:31 AM