3
Reply

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

Atulya Panda

Atulya Panda

11y
8.1k
1
Reply

    System.Array.Clone() Makes a structure with same element. System.Array.CopyTo() makes structure with same element and copies the data as well in your destination array.

    clone creates a structure and "copyto()" makes structure with data.

    System.array.clone makes same copy of the array with its elements...... System.array.copyto() copies the element from one array to another