# GetKeyValueArrays(AllocatorHandle)

> Returns a NativeKeyValueArrays with a copy of all the keys and values (in no particular order).

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public NativeKeyValueArrays<TKey, TValue> GetKeyValueArrays(AllocatorManager.AllocatorHandle allocator)
```

### Parameters

**** (\[AllocatorHandle]\(/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle)): The allocator to use.

### Returns

| Type                                                                                                      | Description                                                                             |
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [NativeKeyValueArrays\<T, T>](/engine/6000.7/script-reference/unity/collections/nativekeyvaluearrays2.md) | A NativeKeyValueArrays with a copy of all the keys and values (in no particular order). |

### Remarks

A key with "N" values is included "N" times in the array.
