## IDictionary::CopyTo method


Copies dictionary contents into existing array elements.

```cpp
virtual void System::Collections::Generic::IDictionary<TKey, TValue>::CopyTo(ArrayPtr<KeyValuePair<TKey, TValue>> arr, int index) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| arr | ArrayPtr\<KeyValuePair\<TKey, TValue\>\> | Destination array. |
| index | int | Destination array start index. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [KeyValuePair](../../keyvaluepair/)
* Class [IDictionary](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PUB for C++](../../../)
