Jul 21, 2015

HashTable clone method

Hash Table clone method provide the shallow copy not the deep copy

shallow copy means copy the object values not the their reference. in other words if you change the copied data it will reflects in original place also


HashTable clone method provides a shallow copy. Now what is a shallow copy ?

The answer is a Shallow copy means copy the object values and not their reference. In other word if you change the copied data it will reflect at original place also - See more at: http://www.dotnetfunda.com/codes/show/2834/hashtable-clone-method#sthash.pNwnaE4n.dpuf
HashTable clone method provides a shallow copy. Now what is a shallow copy ?

The answer is a Shallow copy means copy the object values and not their reference. In other word if you change the copied data it will reflect at original place also. - See more at: http://www.dotnetfunda.com/codes/show/2834/hashtable-clone-method#sthash.pNwnaE4n.dpuf
HashTable clone method provides a shallow copy. Now what is a shallow copy ?

The answer is a Shallow copy means copy the object values and not their reference. In other word if you change the copied data it will reflect at original place also. - See more at: http://www.dotnetfunda.com/codes/show/2834/hashtable-clone-method#sthash.pNwnaE4n.dpuf

No comments:

Post a Comment