ToClone will copy the structure of a data where as ToCopy will copy the complete structure as well as data.
var strArr1 = new string[] { "1", "2", "3","4" }; var strArr2 = strArr1 ; //copy
var strArr3 = new string[] { "1", "2", "3","4" }; var strArr2 = strArr1.ToClone(); //Clone
0 comments:
Post a Comment