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 language is arduino?

728


Illustrate the process of code compilation in c#?

683


Explanation on Generic?

735


Is var a data type?

720


What is a float?

656


How do you clear a list in c#?

672


What is console write in c#?

672


Please explain the basic string operations used in c#?

723


Why do we use inheritance in c#?

666


In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?

665


How does dictionary work in c#?

647


What is int64 in c#?

670


What is generic collection in c#?

670


What is static class in C#?

756


Who benefits from ajax?

773