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
Is as operator in c#?
What is a method c#?
What is _layout cshtml?
How to properly clean up excel interop objects?
What are c# attributes and its significance?
What is session management in c#?
Do void methods have parameters?
What is the advantage of extension method in c#?
Describe the ways of cleaning up objects in c#.
Explain the difference between a struct and a class?
What is default access specifier for class in c#?
What is difference between internal and protected internal in c#?
How will you get the different language strings?
Is datetime nullable c#?
Why do we need a singleton class?