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
When was c# created?
What is the main method?
Is a char?
Is typeof c#?
What is a protected class in c#?
How does one compare strings in c#?
What is mean by c#?
How do you type a null character?
What is boxing? Explain its functionality?
What is Inheritance in C#?
What happens during the process of boxing?
What is an array class?
What are strongly typed objects?
Constructor to an arbitrary base constructor?
Is lazy t thread safe?