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

Why do we use interface in c#?

971


What is delegates in c# and uses of delegates?

829


What are c# i/o classes?

1000


Is it possible to inherit multiple interfaces?

989


Write a C# program to find the Factorial of n

961


What are the applications of c#?

1663


Define a manifest in .net?

984


What is Inheritance in C#?

1141


What's the difference between an integer and int?

1040


Is class reference type c#?

907


What is the difference between delegates and superdelegates?

890


Why do we use ienumerable in c#?

867


What is difference between event and delegate in c#?

900


What is lazy t?

932


Which function is the entry point for a DLL in MS Windows 3.1?

1154