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

Using Clone() method, we creates a new array object and using CopyTo() method, all the elements of existing array copies into another existing array. Both the methods perform a shallow copy.

results matching ""

    No results matching ""