What is the difference between methods – "system.array.clone()" and "system.array.copyto()" in c#?
Answers
Answered by
0
The CopyTo() method copies the elements into another existing array. Both perform a shallow copy. A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array. ... 2-CopyTo let you specify an index (if required) to the destinationarray.
Similar questions