What?s the difference between the System.Array.CopyTo() and
System.Array.Clone()?

Answer Posted / kishore anumala

Clone creates the new array of same length of an existing
array and then copies the data.

Where as copyto copies the data from source to destination
array. Copyto does not creates any new array.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use delegates in c#?

491


What is difference between virtual and override in c#?

454


What is different between Boxing and Unboxing?

577


What is tpl in c#?

491


When To use HashTable In C#

540






What is the difference between returning iqueryable vs ienumerable?

446


What are the different types of literals in c#?

492


What is int parse in c#?

480


What is mvc pattern in c#?

511


What is dependency in software?

515


User's session is explicitly killed by which method ?

494


What are the steps to make an assembly to public?

491


What is file extension of webservices?

574


Why do we use class in c#?

468


What are escape sequences explain with example?

472