# MapFieldCopier&lt;TKey, TValue&gt;.DeepCopy(MapField&lt;TKey, TValue&gt;, CopyContext)

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

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Serializers/Orleans.Serialization.Protobuf/MapFieldCopier.cs#L34-L58)

```csharp
public MapField<TKey, TValue>? MapFieldCopier<TKey, DeepCopy(MapField<TKey, TValue>? input, CopyContext context)
```

Creates a deep copy of the provided input.

### Parameters

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

### Returns

A copy of `input`, or `null` if `input` is `null`.
