## Collection::CopyTo method


Copies collection elements into existing array elements.

```cpp
virtual void System::Collections::ObjectModel::Collection<T>::CopyTo(ArrayPtr<T> arr, int index) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| arr | ArrayPtr\<T\> | Destination array. |
| index | int | Destination array start index. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Collection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.PUB for C++](../../../)
