+1 vote
in C Sharp by

What's the difference between the System.Array.CopyTo() and System.Array.Clone() ?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Aug 22, 2023 in Git by JackTerrance
+1 vote
asked Oct 16, 2019 in Git by rajeshsharma
...