What?s the difference between the System.Array.CopyTo() and
System.Array.Clone()?

Answer Posted / satish

System.Array.CopyTo() performs the deep copy that is it
creates a new duplicate copy without effect of old one.
Whereas Clone creates as shallow copy but as it is a clone
so it is linked with the old one so affect whenever changes
occures in the old one.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are nullable types in c#

522


Is a decimal an integer?

475


If I return out of a try/finally in c#, does the code in the finally-clause run?

551


Can properties be private in c#?

472


What is the difference between mobile application and desktop application?

448






How many types of namespaces available in version4?

513


Which debugging tools you can use in the .NET ssSDK?

545


What is the purpose of private constructor in c#?

544


What are the different types of classes?

476


What is the difference between dll and lib?

474


Who benefits from ajax?

587


What is xaml file in c#?

530


What is bitwise operator in c#?

507


Is it true that all c# types derive from a common base class?

524


Does the system.exception class have any cool features?

502