# ConcurrentDictionaryCopier&lt;TKey, TValue&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.concurrentdictionarycopier-2/)

## DeepCopy(ConcurrentDictionary&lt;TKey, TValue&gt;, CopyContext) {#deepcopy-system-collections-concurrent-concurrentdictionary-tkey-tvalue-orleans-a8fd8e10}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.concurrentdictionarycopier-2/methods/deepcopy-system-collections-concurrent-concurrentdictionary-tkey-tvalue-orleans-a8fd8e10/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ConcurrentDictionaryCodec.cs#L81-L102)

```csharp
public ConcurrentDictionary<TKey, TValue> ConcurrentDictionaryCopier<TKey, DeepCopy(ConcurrentDictionary<TKey, TValue> input, CopyContext context)
```

Creates a deep copy of the provided input.

### Parameters

- `input` (`ConcurrentDictionary<TKey, TValue>`): The input.
- `context` (`CopyContext`): The context.

### Returns

A copy of `input`.

## DeepCopy(ConcurrentDictionary&lt;TKey, TValue&gt;, ConcurrentDictionary&lt;TKey, TValue&gt;, CopyContext) {#deepcopy-system-collections-concurrent-concurrentdictionary-tkey-tvalue-system-c-40822ce9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.concurrentdictionarycopier-2/methods/deepcopy-system-collections-concurrent-concurrentdictionary-tkey-tvalue-system-c-40822ce9/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ConcurrentDictionaryCodec.cs#L108-L112)

```csharp
public void ConcurrentDictionaryCopier<TKey, DeepCopy(ConcurrentDictionary<TKey, TValue> input, ConcurrentDictionary<TKey, TValue> output, CopyContext context)
```

Clones members from `input` and copies them to `output`.

### Parameters

- `input` (`ConcurrentDictionary<TKey, TValue>`): The input.
- `output` (`ConcurrentDictionary<TKey, TValue>`): The output.
- `context` (`CopyContext`): The context.
