Popular Posts

Friday, January 21, 2011

What is the difference between System.Array.CopyTo and System.Array.Clone in .NET?

The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array.

The CopyTo() method copies the elements into another existing array. Both perform a shallow copy.

No comments:

Post a Comment

Total Pageviews