What’s the difference between the System.Array.CopyTo() and System.Array.Clone() ?
Using Clone() method, we create a new array object containing all the elements in the original Array and using CopyTo() method. All the elements of existing array copies into another existing array. Both methods perform a shallow copy.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Using Clone() method, we create a new array object containing all the elements in the original Array and using CopyTo() method. All the elements of existing array copies into another existing array. Both methods perform a shallow copy.
need an explanation for this answer? contact us directly to get an explanation for this answer