Interview Questions

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

C# Interview Questions and Answers


(Continued from previous question...)

71. What is the difference between the System.Array.CopyTo() and System.Array.Clone()?

The first one performs a deep copy of the array, the second one is shallow.

(Continued on next question...)

Other Interview Questions