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

who is a protected class-level variable available to?

1016


What are the types of serialization?

957


What is difference between array and arraylist in c#?

957


What is a race condition?

893


What is meant by collections in c#?

850


What is Co- and Contra-Variance in C#?

980


What is the advantage of constructor in c#?

900


How do you sort a list in c#?

852


What is the namespace for the thread class?

950


What is the difference between static class and singleton class in c#?

918


write a C# Program add two matrix ?

1000


Difference between directcast and ctype.

1017


What is difference between constants and readonly in c#?

1029


Does c# support multiple inheritance (mi)?

935


What is the difference between method parameters and method arguments. Give an example?

926