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

Can int be null in c#?

500


How to find out that the code is written as managed or un-managed code?

596


Int map to which .net types?

541


Is c# or c++ better for games?

466


Can we inherit partial class in c#?

505






What is difference between comparable and comparator?

466


What is type checking in c#?

512


Are arraylist faster or arrays?

492


Why var is used in c#?

498


What are the types of inheritance in c#?

499


What are the types of parameters in c#?

530


What are anonymous functions in c#?

524


What is action in c# 3.5?

541


What is a linq in c#?

482


When should I throw an exception?

556