Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Enlist the different types of classes in c#?

873


What exactly happens when we debug and build the program?

2351


From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

915


What is the purpose of dependency injection?

865


Difference between abstract classes and interfaces

947


Is c# substring zero based?

911


What are the boolean data types in c#?

943


Is xml tags are case sensitive?

831


What is the name of c# compiler?

1075


What is cls, cts and clr in net?

853


Can we inherit private class in c#?

885


What is datetime minvalue in c#?

968


Can a sealed class be used as a base class?

913


Is it possible to have a static indexer in c#? Allowed in c#.

889


How to implement singleton design pattern in c#?

832