# ProtobufCodec Methods

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

## DeepCopy(object, CopyContext) {#deepcopy-object-orleans-serialization-cloning-copycontext-a6d79cce}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.protobuf/orleans.serialization.protobufcodec/methods/deepcopy-object-orleans-serialization-cloning-copycontext-a6d79cce/)

[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`)
