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 is strongly typed view?

586


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

600


What is property in c#?

610


list the steps in code compilation in c#?

563


Why do I get an error (cs1006) when trying to declare a method without specifying a return type?

624






Why do we use lambda expression in c#?

583


Any problem found in vs.et

664


State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

562


Can datetime be null c#?

564


What is the purpose of static?

583


What are extension methods and where can we use them?

535


What is the purpose of dictionary in c#?

543


How can you reference current thread of the method ?

612


What is the difference between const and readonly in c#.net?

562


Can we extend static class in c#?

565