# ProtobufCodec.DeepCopy(object, CopyContext)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Serializers/Orleans.Serialization.Protobuf/ProtobufCodec.cs#L46-L63)

```csharp
public object DeepCopy(object input, CopyContext context)
```

Creates a deep copy of the provided untyped input. The type must still match the copier instance!

### Parameters

- `input` (`object`)
- `context` (`CopyContext`)
