58
94.5
Dec 07, 2010
clone()-----returns the reference of an object in the memory
copy()------copy the structure and data of the object.
50
50
Jan 18, 2011
String.Copy()
Creates a new instance of String with the same value as a specified String.
String.Clone()
Returns a reference to this instance of String.
ChersBy
Prawin
60
95.3
Jan 23, 2011
Excatly!
String.Clone() give pointer value(ie Current memory Reference)
String.Clone() Create an instance in Heap Memory and give pointer value(ie New Memory Reference)
50
50
10 days ago
Clone will copy the structure of a data where as Copy will copy the complete structure as well as data.
string[] arr2 = arr1; //copy
string[] arr4 = (string[])arr3.Clone();