Home > DeveloperSection > Interviews > What’s the difference between the System.Array.CopyTo() and System.Array.Clone() ?

Posted on    September-20-2014 12:00 AM

 C# .NET  C# 
 1 Answer(s)
  818  View(s)
Rate this:

Anchal Kesharwani
Anchal Kesharwani

Total Post:15

Posted on    September-20-2014 12:00 AM

Using Clone() method, we creates 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 the methods perform a shallow copy.

Don't want to miss updates? Please click the below button!

Follow MindStick