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

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

## DeepCopy(SortedDictionarySurrogate&lt;TKey, TValue&gt;, CopyContext) {#deepcopy-orleans-serialization-codecs-sorteddictionarysurrogate-tkey-tvalue-orle-37102588}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.copier-sorteddictionarysurrogate-2/methods/deepcopy-orleans-serialization-codecs-sorteddictionarysurrogate-tkey-tvalue-orle-37102588/)

```csharp
public SortedDictionarySurrogate<TKey, TValue> Copier_SortedDictionarySurrogate<TKey, DeepCopy(SortedDictionarySurrogate<TKey, TValue> result, CopyContext context)
```

Creates a deep copy of the provided input.

### Parameters

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

### Returns

A copy of `input`.
