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
Can scriptable objects have methods?
What do u mean by delegation?
Why to use “using” in c#?
What is difference between tostring() vs convert.tostring() vs (string) cast
Is 0 an unsigned integer?
What is a console application in c#?
What is difference between dictionary and hashtable in c#?
What is the function of .IsDescendent()?
What is difference between class and interface in c#?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?
If the original method is not static you can declare an override method to be static or not?
What is the difference between ref & out parameters in c#?
What is the use of tryparse in c#?
Is c sharp free?
What is Implicit conversion in C#?