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

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

## DeepCopy(ImmutableSortedDictionary&lt;TKey, TValue&gt;, CopyContext) {#deepcopy-system-collections-immutable-immutablesorteddictionary-tkey-tvalue-orle-9f81ea8c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablesorteddictionarycopier-2/methods/deepcopy-system-collections-immutable-immutablesorteddictionary-tkey-tvalue-orle-9f81ea8c/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ImmutableSortedDictionaryCodec.cs#L90-L107)

```csharp
public ImmutableSortedDictionary<TKey, TValue> ImmutableSortedDictionaryCopier<TKey, DeepCopy(ImmutableSortedDictionary<TKey, TValue> input, CopyContext context)
```

Creates a deep copy of the provided input.

### Parameters

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

### Returns

A copy of `input`.

## IsShallowCopyable {#isshallowcopyable-9536b34f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.immutablesorteddictionarycopier-2/methods/isshallowcopyable-9536b34f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ImmutableSortedDictionaryCodec.cs#L85)

```csharp
public bool ImmutableSortedDictionaryCopier<TKey, IsShallowCopyable()
```

Returns true if the type is shallow-copyable.
