# ConcurrentDictionaryCopier&lt;TKey, TValue&gt;.DeepCopy(ConcurrentDictionary&lt;TKey, TValue&gt;, CopyContext)

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

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

```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`, or `null` if `input` is `null`.
