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
Enlist the different types of classes in c#?
What exactly happens when we debug and build the program?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
What is the purpose of dependency injection?
Difference between abstract classes and interfaces
Is c# substring zero based?
What are the boolean data types in c#?
Is xml tags are case sensitive?
What is the name of c# compiler?
What is cls, cts and clr in net?
Can we inherit private class in c#?
What is datetime minvalue in c#?
Can a sealed class be used as a base class?
Is it possible to have a static indexer in c#? Allowed in c#.
How to implement singleton design pattern in c#?