# ObjectCopier.DeepCopy(object, CopyContext)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ObjectCodec.cs#L123-L124)

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

Creates a deep copy of the provided input.

### Parameters

- `input` (`object`): The input.
- `context` (`CopyContext`): The context.

### Returns

A copy of `input`.
