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
who is a protected class-level variable available to?
What are the types of serialization?
What is difference between array and arraylist in c#?
What is a race condition?
What is meant by collections in c#?
What is Co- and Contra-Variance in C#?
What is the advantage of constructor in c#?
How do you sort a list in c#?
What is the namespace for the thread class?
What is the difference between static class and singleton class in c#?
write a C# Program add two matrix ?
Difference between directcast and ctype.
What is difference between constants and readonly in c#?
Does c# support multiple inheritance (mi)?
What is the difference between method parameters and method arguments. Give an example?