---
title: "difference between System.Array.CopyTo() and System.Array.Clone()"  
description: "difference between System.Array.CopyTo() and System.Array.Clone()"  
author: "Manoj Bhatt"  
published: 2016-02-01  
updated: 2016-02-01  
canonical: https://www.mindstick.com/forum/33946/difference-between-system-array-copyto-and-system-array-clone  
category: "c#"  
tags: ["c#", ".net"]  
reading_time: 1 minute  

---

# difference between System.Array.CopyTo() and System.Array.Clone()

Hi all,I want to use a [shallow copy](https://www.mindstick.com/interview/33945/discuss-the-differences-between-deep-copy-and-shallow-copy-in-java-objects) of my [array](https://www.mindstick.com/articles/335/jagged-array-in-c-sharp-dot-net) but i am confuse between System.Array.CopyTo() and System.Array.Clone().So, Please give me a solution.Thank you.

## Replies

### Reply by Anupam Mishra

Both CopyTo() and Clone() make shallow [copy](https://www.mindstick.com/forum/161993/explain-the-numpy-array-copy-vs-view-with-example). Clone() method makes a clone of the original array. It returns an exact length array.

On the other hand, CopyTo() copies the elements from the original array to the destination array starting at the specified destination array index. Note that, this adds elements to an already existing array.

\


---

Original Source: https://www.mindstick.com/forum/33946/difference-between-system-array-copyto-and-system-array-clone

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
