> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.1/api/csharp/yarn.unity/yarn.unity.serializeddictionary/yarn.unity.serializeddictionary.copyto.md).

# CopyTo(KeyValuePair\<TKey, TValue>\[],int)

Method in [SerializedDictionary](/2.1/api/csharp/yarn.unity/yarn.unity.serializeddictionary.md)

## Summary

```csharp
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
```

## Parameters

| Name                                 | Description |
| ------------------------------------ | ----------- |
| `KeyValuePair<TKey, TValue>[]` array |             |
| `int` arrayIndex                     |             |
