What?s the difference between the System.Array.CopyTo() and
System.Array.Clone()?
Answer Posted / jiturcm
System.Array.CopyTo() performs deep copy and shallow.
Where as System.Array.clone() performs shallow copy.
System.Array.CopyTo() doesn't create new Array
System.Array.clone() create new Array of same length of existing array.
If System.Array.CopyTo()can perform both deep copy and
shallow then why System.Array.clone ?
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Why do we use interface in c#?
What is delegates in c# and uses of delegates?
What are c# i/o classes?
Is it possible to inherit multiple interfaces?
Write a C# program to find the Factorial of n
What are the applications of c#?
Define a manifest in .net?
What is Inheritance in C#?
What's the difference between an integer and int?
Is class reference type c#?
What is the difference between delegates and superdelegates?
Why do we use ienumerable in c#?
What is difference between event and delegate in c#?
What is lazy t?
Which function is the entry point for a DLL in MS Windows 3.1?