What's the difference between the System.Array.CopyTo() and System.Array.Clone() in C# ?
- 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 methods perform a shallow copy.
No comments