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

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

## DeepCopy(ImmutableSortedDictionarySurrogate&lt;TKey, TValue&gt;, CopyContext) {#deepcopy-orleans-serialization-codecs-immutablesorteddictionarysurrogate-tkey-tv-63c42b1c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleanscodegen.orleans.serialization.codecs.copier-immutablesorteddictionarysurrogate-2/methods/deepcopy-orleans-serialization-codecs-immutablesorteddictionarysurrogate-tkey-tv-63c42b1c/)

```csharp
public ImmutableSortedDictionarySurrogate<TKey, TValue> Copier_ImmutableSortedDictionarySurrogate<TKey, DeepCopy(ImmutableSortedDictionarySurrogate<TKey, TValue> result, CopyContext context)
```

Creates a deep copy of the provided input.

### Parameters

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

### Returns

A copy of `input`.
