Answer:
Both the method are used for copy the data. But the difference is System.Array.CopyTo() method performs deep copy and System.Array.Clone() method performs shallow copy.
Here deep copy means it will create new instance of each element object where as shallow copy contains reference of same object.
Asked In: Many Interviews |
Alert Moderator