Skip to main content

Home/ Coders/ What is the difference between the copyTo() and clone()?
cprogrammings example

What is the difference between the copyTo() and clone()? - 0 views

System.Array.CopyTo():-The two dimensional array is the destination of elements copied from arraylist .The must have zero based indexed. System.Array.Clone():-It creates shallow copy an .A copies only whether they are reference types or values but it does

started by cprogrammings example on 24 Apr 11
  • cprogrammings example
     
    System.Array.CopyTo():-The two dimensional array is the destination of the elements copied from the arraylist .The array must have zero based indexed.
    System.Array.Clone():-It creates the shallow copy of an array .A shallow copy of an array copies only the elements of the array,whether they are reference types or values types but it doesnot copy.

To Top

Start a New Topic » « Back to the Coders group